Skip to content

Commit

Permalink
merge fix
Browse files Browse the repository at this point in the history
  • Loading branch information
EternalBlueFlame committed Aug 8, 2023
2 parents ccfcbbb + 8dacc62 commit c45b4cb
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/main/java/ebf/tim/render/RenderWagon.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,24 +65,6 @@ public void doRender(Entity entity, double x, double y, double z, float yaw, flo
render((GenericRailTransport) entity, x, y, z, entity.rotationYaw + CommonUtil.wrapAngleTo180(entity.rotationYaw - entity.prevRotationYaw) * partialTick,
((GenericRailTransport) entity).backBogie==null);
}
}*/

//manages culling, mostly just breaks stuff, leave to return true.
@Override
public boolean shouldRender(GenericRailTransport entity, ICamera camera, double camX, double camY, double camZ) {
return true;
}

public void doRender(GenericRailTransport entity, double x, double y, double z, float yaw, float partialTick){
if (entity !=null){
if(entity.frontBogie!=null) {
render(entity, x, y, z, entity.prevRotationYaw + CommonUtil.wrapAngleTo180(entity.rotationYaw - entity.prevRotationYaw) * partialTick,
false);
} else {
render(entity, x, y, z, entity.rotationYaw + CommonUtil.wrapAngleTo180(entity.rotationYaw - entity.prevRotationYaw) * partialTick,
true);
}
}
}
@Override
Expand Down

0 comments on commit c45b4cb

Please sign in to comment.