mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-30 11:53:52 -07:00
Fixed some bugs with inventory
This commit is contained in:
@@ -48,7 +48,7 @@ public class CraftItemStack extends ItemStack {
|
||||
@Override
|
||||
public int getAmount() {
|
||||
super.setAmount(item != null ? item.a : 0); // sync, needed?
|
||||
return item.a;
|
||||
return (item != null ? item.a : 0);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user