inventoryTick bag items in tick as well
This commit is contained in:
parent
e52928e2e7
commit
c74009fe4a
1 changed files with 10 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue