Skip to content

Commit

Permalink
Fix floating flower island type rendering on Forge
Browse files Browse the repository at this point in the history
(fixes #4625)
  • Loading branch information
TheRealWormbo committed Jun 8, 2024
1 parent 21c067b commit 97d87f6
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}

0 comments on commit 97d87f6

Please sign in to comment.