mirror of
https://github.com/GTNewHorizons/ironchest.git
synced 2026-11-26 06:52:55 +00:00
Fix silly item stack displays with 3d items. Should help crystal chest
performance
This commit is contained in:
1 parent
a5d0320adf
commit
affe83c7de
1 file changed
+2
-2
@@ -73,10 +73,10 @@ public class TileEntityIronChestRenderer extends TileEntitySpecialRenderer {
|
||||
itemRenderer = new RenderItem() {
|
||||
@Override
|
||||
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) {
|
||||
return SignedBytes.saturatedCast((stack.stackSize / 32) + 1);
|
||||
return SignedBytes.saturatedCast(Math.min(stack.stackSize / 32, 7) + 1);
|
||||
};
|
||||
public boolean shouldBob() {
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user