fix ticking of kit displays bound to blocks #2 (fix rotation of items)

This commit is contained in:
Aurora 2020-08-12 20:38:01 +02:00 committed by Brianna
parent a90417a677
commit 09cce89d75
1 changed files with 2 additions and 2 deletions

View File

@ -67,9 +67,9 @@ public class DisplayItemHandler {
NBTItem nbtItem = NmsManager.getNbt().of(i.getItemStack());
int inum = nbtItem.has("num") ? nbtItem.getNBTObject("num").asInt() : 0;
int inum = nbtItem.has("num") ? nbtItem.getNBTObject("num").asInt() + 1 : 0;
if (inum > list.size()) inum = 0;
if (inum >= list.size()) inum = 0;
ItemStack is = list.get(inum - 1);
if (kitBlockData.isItemOverride()) {