From 97d87f63f86f18d85267ae128e60a5bb43763650 Mon Sep 17 00:00:00 2001 From: TheRealWormbo Date: Sat, 8 Jun 2024 09:50:32 +0200 Subject: [PATCH] Fix floating flower island type rendering on Forge (fixes #4625) --- .../vazkii/botania/forge/client/ForgeClientXplatImpl.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); } } }