1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-12-14 20:20:30 +00:00

Fix non-inventory GUIs rendering labels

This commit is contained in:
SquidDev 2020-07-18 12:17:02 +01:00
parent 31764f6d65
commit 087c305b0d
3 changed files with 18 additions and 0 deletions

View File

@ -150,4 +150,10 @@ public final class GuiComputer<T extends ContainerComputerBase> extends Containe
return (getFocused() != null && getFocused().mouseDragged( x, y, button, deltaX, deltaY )) return (getFocused() != null && getFocused().mouseDragged( x, y, button, deltaX, deltaY ))
|| super.mouseDragged( x, y, button, deltaX, deltaY ); || super.mouseDragged( x, y, button, deltaX, deltaY );
} }
@Override
protected void func_230451_b_( @Nonnull MatrixStack transform, int mouseX, int mouseY )
{
// Skip rendering labels.
}
} }

View File

@ -118,4 +118,10 @@ public class GuiPrintout extends ContainerScreen<ContainerHeldItem>
super.render( stack, mouseX, mouseY, partialTicks ); super.render( stack, mouseX, mouseY, partialTicks );
func_230459_a_( stack, mouseX, mouseY ); func_230459_a_( stack, mouseX, mouseY );
} }
@Override
protected void func_230451_b_( @Nonnull MatrixStack transform, int mouseX, int mouseY )
{
// Skip rendering labels.
}
} }

View File

@ -138,4 +138,10 @@ public class GuiTurtle extends ContainerScreen<ContainerTurtle>
return (getFocused() != null && getFocused().mouseDragged( x, y, button, deltaX, deltaY )) return (getFocused() != null && getFocused().mouseDragged( x, y, button, deltaX, deltaY ))
|| super.mouseDragged( x, y, button, deltaX, deltaY ); || super.mouseDragged( x, y, button, deltaX, deltaY );
} }
@Override
protected void func_230451_b_( @Nonnull MatrixStack transform, int mouseX, int mouseY )
{
// Skip rendering labels.
}
} }