Fixed wrong return value in VirtualInventory#setItemAmount

This commit is contained in:
NichtStudioCode 2021-11-19 01:01:02 +01:00
parent 3c57947f3a
commit 32e6564b60

@ -481,7 +481,7 @@ public class VirtualInventory implements ConfigurationSerializable {
return newItemStack != null ? newItemStack.getAmount() : 0;
}
return amount;
return currentStack.getAmount();
}
/**