Skip to content

Commit

Permalink
add variant to prop render state
Browse files Browse the repository at this point in the history
  • Loading branch information
maximumpower55 committed Jan 12, 2025
1 parent dda94bc commit bcd78cd
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,13 @@ public PropRenderState createRenderState() {
public void extractRenderState(Prop prop, PropRenderState reusedState, float tickDelta) {
super.extractRenderState(prop, reusedState, tickDelta);
reusedState.type = prop.type;
reusedState.variant = prop.getVariant();
reusedState.yRot = prop.getYRot(tickDelta);
}

private static final class ModelEmitter extends DelegatingVertexConsumer {
@SuppressWarnings("deprecation")
private static final RenderType EMISSIVE_RENDER_TYPE = RenderType.beaconBeam(TextureAtlas.LOCATION_BLOCKS, true);
private static final RenderType EMISSIVE_RENDER_TYPE = RenderType.entityTranslucentEmissive(TextureAtlas.LOCATION_BLOCKS);
private static final RenderType DEFAULT_RENDER_TYPE = Sheets.translucentItemSheet();
private static final RenderType CUTOUT_RENDER_TYPE = Sheets.cutoutBlockSheet();

Expand Down

0 comments on commit bcd78cd

Please sign in to comment.