mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-02-21 13:30: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:
parent
d4efacd40a
commit
ab702e2ba1
@ -55,9 +55,6 @@ public class GuiTurtle extends ComputerScreenBase<ContainerTurtle>
|
|||||||
minecraft.getTextureManager().bind( advanced ? BACKGROUND_ADVANCED : BACKGROUND_NORMAL );
|
minecraft.getTextureManager().bind( advanced ? BACKGROUND_ADVANCED : BACKGROUND_NORMAL );
|
||||||
blit( leftPos + ComputerSidebar.WIDTH, topPos, 0, 0, TEX_WIDTH, TEX_HEIGHT );
|
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();
|
int slot = getMenu().getSelectedSlot();
|
||||||
if( slot >= 0 )
|
if( slot >= 0 )
|
||||||
{
|
{
|
||||||
@ -69,5 +66,8 @@ public class GuiTurtle extends ComputerScreenBase<ContainerTurtle>
|
|||||||
0, 217, 24, 24
|
0, 217, 24, 24
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
minecraft.getTextureManager().bind( advanced ? ComputerBorderRenderer.BACKGROUND_ADVANCED : ComputerBorderRenderer.BACKGROUND_NORMAL );
|
||||||
|
ComputerSidebar.renderBackground( leftPos, topPos + sidebarYOffset );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user