BBLogging.warning("Chest restore conflict. Different types.");
} else {
amount = stack.getAmount() + amount;
int damage = stack.getDurability();
if (amount < 0) {
inv.clear(i);
} else {
ItemStack newStack = new ItemStack(id, amount, (byte) damage, (byte) itemData);
inv.setItem(i, newStack);
}
}