1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-02-18 20:10:05 +00:00

Correctly render turtles' selected slot

We had the wrong texture bound, which meant nothing was being rendered!

Fixes #852
This commit is contained in:
Jonathan Coates 2021-07-15 10:55:48 +01:00
parent d4efacd40a
commit ab702e2ba1
No known key found for this signature in database
GPG Key ID: B9E431FF07C98D06

View File

@ -55,9 +55,6 @@ public class GuiTurtle extends ComputerScreenBase<ContainerTurtle>
minecraft.getTextureManager().bind( advanced ? BACKGROUND_ADVANCED : BACKGROUND_NORMAL );
blit( leftPos + ComputerSidebar.WIDTH, topPos, 0, 0, TEX_WIDTH, TEX_HEIGHT );
minecraft.getTextureManager().bind( advanced ? ComputerBorderRenderer.BACKGROUND_ADVANCED : ComputerBorderRenderer.BACKGROUND_NORMAL );
ComputerSidebar.renderBackground( leftPos, topPos + sidebarYOffset );
int slot = getMenu().getSelectedSlot();
if( slot >= 0 )
{
@ -69,5 +66,8 @@ public class GuiTurtle extends ComputerScreenBase<ContainerTurtle>
0, 217, 24, 24
);
}
minecraft.getTextureManager().bind( advanced ? ComputerBorderRenderer.BACKGROUND_ADVANCED : ComputerBorderRenderer.BACKGROUND_NORMAL );
ComputerSidebar.renderBackground( leftPos, topPos + sidebarYOffset );
}
}