1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-11-20 00:34:52 +00:00

Fix background not rendering on (pocket) computers

This commit is contained in:
Jonathan Coates 2021-06-05 11:46:10 +01:00
parent 1866916cb8
commit 8b9735d72e
No known key found for this signature in database
GPG Key ID: B9E431FF07C98D06
2 changed files with 1 additions and 8 deletions

View File

@ -140,6 +140,7 @@ public final class GuiComputer<T extends ContainerComputerBase> extends Containe
@Override
public void render( @Nonnull MatrixStack stack, int mouseX, int mouseY, float partialTicks )
{
renderBackground( stack );
super.render( stack, mouseX, mouseY, partialTicks );
renderTooltip( stack, mouseX, mouseY );
}

View File

@ -24,14 +24,6 @@ public class GuiPrinter extends ContainerScreen<ContainerPrinter>
super( container, player, title );
}
/*@Override
protected void drawGuiContainerForegroundLayer( int mouseX, int mouseY )
{
String title = getTitle().getFormattedText();
font.drawString( title, (xSize - font.getStringWidth( title )) / 2.0f, 6, 0x404040 );
font.drawString( I18n.format( "container.inventory" ), 8, ySize - 96 + 2, 0x404040 );
}*/
@Override
protected void renderBg( @Nonnull MatrixStack transform, float partialTicks, int mouseX, int mouseY )
{