A few bin fixes
This commit is contained in:
parent
9a704f2812
commit
088cd2f4d3
3 changed files with 13 additions and 5 deletions
|
@ -88,6 +88,7 @@ public class RenderBin extends TileEntitySpecialRenderer
|
|||
TextureManager renderEngine = Minecraft.getMinecraft().renderEngine;
|
||||
|
||||
GL11.glDisable(GL11.GL_LIGHTING);
|
||||
GL11.glEnable(GL11.GL_DEPTH_TEST);
|
||||
|
||||
renderItem.renderItemAndEffectIntoGUI(func_147498_b()/*getFontRenderer()*/, renderEngine, itemStack, 0, 0);
|
||||
|
||||
|
|
|
@ -364,9 +364,15 @@ public class TileEntityBin extends TileEntityBasicBlock implements ISidedInvento
|
|||
}
|
||||
else if(i == 1)
|
||||
{
|
||||
if(isValid(itemstack))
|
||||
if(itemstack == null)
|
||||
{
|
||||
add(itemstack);
|
||||
topStack = null;
|
||||
}
|
||||
else {
|
||||
if(isValid(itemstack) && itemstack.stackSize > StackUtils.getSize(topStack))
|
||||
{
|
||||
add(StackUtils.size(itemstack, itemstack.stackSize-StackUtils.getSize(topStack)));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -170,7 +170,8 @@ public final class InventoryUtils
|
|||
return toInsert;
|
||||
}
|
||||
|
||||
public static boolean areItemsStackable(ItemStack toInsert, ItemStack inSlot) {
|
||||
public static boolean areItemsStackable(ItemStack toInsert, ItemStack inSlot)
|
||||
{
|
||||
return inSlot.isItemEqual(toInsert) && ItemStack.areItemStackTagsEqual(inSlot, toInsert);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue