mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-28 07:55:53 +00:00
21 lines
1.1 KiB
Diff
21 lines
1.1 KiB
Diff
--- a/net/minecraft/client/renderer/chunk/SectionCompiler.java
|
|
+++ b/net/minecraft/client/renderer/chunk/SectionCompiler.java
|
|
@@ -61,6 +_,7 @@
|
|
public SectionCompiler.Results compile(
|
|
final SectionPos sectionPos, final RenderSectionRegion region, final VertexSorting vertexSorting, final SectionBufferBuilderPack builders
|
|
) {
|
|
+ var modelDataMap = net.minecraft.client.Minecraft.getInstance().level.getModelDataManager().getAt(sectionPos);
|
|
SectionCompiler.Results results = new SectionCompiler.Results();
|
|
BlockPos minPos = sectionPos.origin();
|
|
BlockPos maxPos = minPos.offset(15, 15, 15);
|
|
@@ -109,7 +_,8 @@
|
|
pos,
|
|
blockState,
|
|
this.blockModelSet.get(blockState),
|
|
- blockState.getSeed(pos)
|
|
+ blockState.getSeed(pos),
|
|
+ modelDataMap.getOrDefault(pos, net.minecraftforge.client.model.data.ModelData.EMPTY)
|
|
);
|
|
}
|
|
} catch (Throwable var21) {
|