Fix silly item stack displays with 3d items. Should help crystal chest

performance
This commit is contained in:
Christian 2012-12-27 23:20:21 -05:00
parent a5d0320adf
commit affe83c7de
1 changed files with 2 additions and 2 deletions

View File

@ -73,10 +73,10 @@ public class TileEntityIronChestRenderer extends TileEntitySpecialRenderer {
itemRenderer = new RenderItem() { itemRenderer = new RenderItem() {
@Override @Override
public byte getMiniBlockCountForItemStack(ItemStack stack) { public byte getMiniBlockCountForItemStack(ItemStack stack) {
return SignedBytes.saturatedCast((stack.stackSize / 32) + 1); return SignedBytes.saturatedCast(Math.min(stack.stackSize / 32, 15) + 1);
} }
public byte getMiniItemCountForItemStack(ItemStack stack) { public byte getMiniItemCountForItemStack(ItemStack stack) {
return SignedBytes.saturatedCast((stack.stackSize / 32) + 1); return SignedBytes.saturatedCast(Math.min(stack.stackSize / 32, 7) + 1);
}; };
public boolean shouldBob() { public boolean shouldBob() {
return false; return false;