fixed shapes rendering with fabuluouse graphics. fixes #420
This commit is contained in:
1 parent
3167fe06f3
commit
68f545df4f
1 file changed
+1
-2
@@ -25,13 +25,12 @@ public class WorldRenderer_scarpetRenderMixin
|
|||||||
CarpetClient.shapes = new ShapesRenderer(client);
|
CarpetClient.shapes = new ShapesRenderer(client);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Inject(method = "render", at = @At("TAIL"))//at = @At(value = "INVOKE", target = "Lnet/minecraft/client/render/debug/DebugRenderer;render(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/render/VertexConsumerProvider$Immediate;DDD)V"))
|
@Inject(method = "render", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/render/debug/DebugRenderer;render(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/render/VertexConsumerProvider$Immediate;DDD)V"))
|
||||||
private void renderScarpetThings(MatrixStack matrices, float tickDelta, long limitTime, boolean renderBlockOutline, Camera camera, GameRenderer gameRenderer, LightmapTextureManager lightmapTextureManager, Matrix4f matrix4f, CallbackInfo ci)
|
private void renderScarpetThings(MatrixStack matrices, float tickDelta, long limitTime, boolean renderBlockOutline, Camera camera, GameRenderer gameRenderer, LightmapTextureManager lightmapTextureManager, Matrix4f matrix4f, CallbackInfo ci)
|
||||||
{
|
{
|
||||||
if (CarpetClient.shapes != null)
|
if (CarpetClient.shapes != null)
|
||||||
{
|
{
|
||||||
RenderSystem.pushMatrix();
|
RenderSystem.pushMatrix();
|
||||||
RenderSystem.multMatrix(matrices.peek().getModel());
|
|
||||||
CarpetClient.shapes.render(camera, tickDelta);
|
CarpetClient.shapes.render(camera, tickDelta);
|
||||||
RenderSystem.popMatrix();
|
RenderSystem.popMatrix();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user