Skip to content

Commit 43f589a

Browse files
committed
fix: readding necessary block of code - I remember why it was there now
1 parent 0343bb6 commit 43f589a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/dev/galacticraft/machinelib/client/impl/model/MachineBakedModel.java

+4
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,10 @@ public TextureAtlasSprite getSprite(@Nullable BlockState state, @NotNull BlockFa
154154
}
155155
}
156156

157+
if (state == null) {
158+
TextureAtlasSprite override = this.provider.getItemOverride(face);
159+
if (override != null) return override;
160+
}
157161
TextureAtlasSprite sprite = this.provider.getSprite(face);
158162
return sprite == null ? this.base.base() : sprite;
159163
}

0 commit comments

Comments
 (0)