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 @@ protected void renderBg( float partialTicks, int mouseX, int mouseY )
|
||||||
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 @@ protected void renderBg( float partialTicks, int mouseX, int mouseY )
|
||||||
0, 217, 24, 24
|
0, 217, 24, 24
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
minecraft.getTextureManager().bind( advanced ? ComputerBorderRenderer.BACKGROUND_ADVANCED : ComputerBorderRenderer.BACKGROUND_NORMAL );
|
||||||
|
ComputerSidebar.renderBackground( leftPos, topPos + sidebarYOffset );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue