inventoryTick bag items in tick as well

This commit is contained in:
Cynthia Foxwell 2024-03-17 11:54:06 -06:00
parent e52928e2e7
commit c74009fe4a

View file

@ -220,6 +220,16 @@ public class BaseBagItem extends TrinketItem {
} }
} }
@Override
public void tick(ItemStack stack, SlotReference slot, LivingEntity entity) {
var inv = getInventory(stack);
for (int i = 0; i < inv.size(); i++) {
var invStack = inv.getStack(i);
invStack.inventoryTick(entity.getWorld(), entity, i, false);
}
}
public enum BagType { public enum BagType {
SATCHEL, SATCHEL,
POUCH POUCH