diff --git a/Forge/src/main/java/vazkii/botania/forge/client/ForgeClientXplatImpl.java b/Forge/src/main/java/vazkii/botania/forge/client/ForgeClientXplatImpl.java index 19e1418be3..7cee155cec 100644 --- a/Forge/src/main/java/vazkii/botania/forge/client/ForgeClientXplatImpl.java +++ b/Forge/src/main/java/vazkii/botania/forge/client/ForgeClientXplatImpl.java @@ -69,11 +69,12 @@ public void restoreLastFilter(AbstractTexture texture) { public void tessellateBlock(Level level, BlockState state, BlockPos pos, PoseStack ps, MultiBufferSource buffers, int overlay) { var renderer = Minecraft.getInstance().getBlockRenderer(); var model = renderer.getBlockModel(state); + var modelData = model.getModelData(level, pos, state, ModelData.EMPTY); var rand = RandomSource.create(); - for (RenderType type : model.getRenderTypes(state, rand, ModelData.EMPTY)) { + for (RenderType type : model.getRenderTypes(state, rand, modelData)) { renderer.getModelRenderer().tesselateBlock(level, model, state, pos, ps, buffers.getBuffer(type), false, rand, - state.getSeed(pos), overlay, ModelData.EMPTY, type); + state.getSeed(pos), overlay, modelData, type); } } }