Fixed 1x2 rendering
This commit is contained in:
parent
b070097bc9
commit
28ecac8ac2
|
@ -105,12 +105,12 @@ public class DrawerRenderer implements BlockEntityRenderer<DrawerTile> {
|
||||||
|
|
||||||
private void render2Slot(PoseStack matrixStack, MultiBufferSource bufferIn, int combinedLightIn, int combinedOverlayIn, DrawerTile tile){
|
private void render2Slot(PoseStack matrixStack, MultiBufferSource bufferIn, int combinedLightIn, int combinedOverlayIn, DrawerTile tile){
|
||||||
BigInventoryHandler inventoryHandler = (BigInventoryHandler) tile.getStorage();
|
BigInventoryHandler inventoryHandler = (BigInventoryHandler) tile.getStorage();
|
||||||
if (!inventoryHandler.getStoredStacks().get(1).getStack().isEmpty()){
|
if (!inventoryHandler.getStoredStacks().get(0).getStack().isEmpty()){
|
||||||
matrixStack.pushPose();
|
matrixStack.pushPose();
|
||||||
matrixStack.translate(0.5, 0.27f, 0.0005f);
|
matrixStack.translate(0.5, 0.27f, 0.0005f);
|
||||||
matrixStack.scale(0.5f, 0.5f, 1);
|
matrixStack.scale(0.5f, 0.5f, 1);
|
||||||
ItemStack stack = inventoryHandler.getStoredStacks().get(1).getStack();
|
ItemStack stack = inventoryHandler.getStoredStacks().get(0).getStack();
|
||||||
renderStack(matrixStack, bufferIn, combinedLightIn, combinedOverlayIn, stack, inventoryHandler.getStoredStacks().get(1).getAmount(), 0.02f);
|
renderStack(matrixStack, bufferIn, combinedLightIn, combinedOverlayIn, stack, inventoryHandler.getStoredStacks().get(0).getAmount(), 0.02f);
|
||||||
matrixStack.popPose();
|
matrixStack.popPose();
|
||||||
}
|
}
|
||||||
if (!inventoryHandler.getStoredStacks().get(1).getStack().isEmpty()){
|
if (!inventoryHandler.getStoredStacks().get(1).getStack().isEmpty()){
|
||||||
|
|
Loading…
Reference in New Issue
Block a user