Skip to content

Commit

Permalink
fixed render crash I think
Browse files Browse the repository at this point in the history
  • Loading branch information
Trinsdar committed Aug 30, 2023
1 parent abb0722 commit 915ca58
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public static List<Caches.LiquidCache> buildLiquids(TileEntityMachine<?> tile) {

if (bakedModel instanceof MachineBakedModel model) {
for (Direction dir : Ref.DIRS) {
BakedModel ibm = model.getModel(tile.getBlockState(), dir, tile.getMachineState());
BakedModel ibm = model.getModel(tile.getBlockState(), dir, tile.getMachineState().getTextureState());
if (!(ibm instanceof BakedMachineSide toRender)) continue;
for (Map.Entry<String, BakedModel> customPart : toRender.customParts()) {
String[] parts = customPart.getKey().split(":");
Expand Down

0 comments on commit 915ca58

Please sign in to comment.