diff --git a/patches/net/minecraft/client/renderer/chunk/SectionRenderDispatcher.java.patch b/patches/net/minecraft/client/renderer/chunk/SectionRenderDispatcher.java.patch index bc4eb664d2..13db42badc 100644 --- a/patches/net/minecraft/client/renderer/chunk/SectionRenderDispatcher.java.patch +++ b/patches/net/minecraft/client/renderer/chunk/SectionRenderDispatcher.java.patch @@ -1,14 +1,5 @@ --- a/net/minecraft/client/renderer/chunk/SectionRenderDispatcher.java +++ b/net/minecraft/client/renderer/chunk/SectionRenderDispatcher.java -@@ -254,7 +_,7 @@ - } - - @OnlyIn(Dist.CLIENT) -- public class RenderSection { -+ public class RenderSection implements net.neoforged.neoforge.client.IRenderableSection { - public static final int SIZE = 16; - public final int index; - public final AtomicReference compiled = new AtomicReference<>( @@ -399,9 +_,10 @@ public SectionRenderDispatcher.RenderSection.CompileTask createCompileTask(RenderRegionCache p_295324_) { diff --git a/src/main/resources/META-INF/injected-interfaces.json b/src/main/resources/META-INF/injected-interfaces.json index 4b74dfc737..4ae36f7f74 100644 --- a/src/main/resources/META-INF/injected-interfaces.json +++ b/src/main/resources/META-INF/injected-interfaces.json @@ -38,6 +38,9 @@ "net/minecraft/client/renderer/blockentity/BlockEntityRenderer": [ "net/neoforged/neoforge/client/extensions/IBlockEntityRendererExtension" ], + "net/minecraft/client/renderer/chunk/SectionRenderDispatcher$RenderSection": [ + "net/neoforged/neoforge/client/IRenderableSection" + ], "net/minecraft/client/resources/model/BakedModel": [ "net/neoforged/neoforge/client/extensions/IBakedModelExtension" ],