Skip to content

Commit

Permalink
Rewrote Placement code for straights
Browse files Browse the repository at this point in the history
Also fixed 32x turns after merging, and updated lang files
  • Loading branch information
TheDoctor1138 committed Nov 25, 2023
1 parent b1a9cc2 commit 59e1f09
Show file tree
Hide file tree
Showing 6 changed files with 226 additions and 496 deletions.
18 changes: 18 additions & 0 deletions src/main/java/train/client/render/RenderTCRail.java
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,15 @@ public void renderTileEntityAt(TileEntity var1, double x, double y, double z, fl
modelLeftTurn.render("super_large", railTile, x, y, z);
break;
}
case TURN_32X32:
case RIGHT_TURN_32X32: {
modelRightTurn.render("32x", railTile, x, y, z);
break;
}
case LEFT_TURN_32X32: {
modelLeftTurn.render("32x", railTile, x, y, z);
break;
}
case MEDIUM_45DEGREE_TURN:
case MEDIUM_RIGHT_45DEGREE_TURN: {
model45DegreeRightTurn.render("medium", "", railTile, x, y, z);
Expand Down Expand Up @@ -395,6 +404,15 @@ public void renderTileEntityAt(TileEntity var1, double x, double y, double z, fl
modelLeftTurn.render("embedded_super_large", railTile, x, y, z);
break;
}
case EMBEDDED_TURN_32X32:
case EMBEDDED_RIGHT_TURN_32X32: {
modelRightTurn.render("32x", railTile, x, y, z);
break;
}
case EMBEDDED_LEFT_TURN_32X32: {
modelLeftTurn.render("32x", railTile, x, y, z);
break;
}
case EMBEDDED_MEDIUM_45DEGREE_TURN:
case EMBEDDED_MEDIUM_RIGHT_45DEGREE_TURN: {
model45DegreeRightTurn.render("medium", "embedded", railTile, x, y, z);
Expand Down
Loading

0 comments on commit 59e1f09

Please sign in to comment.