类型错误怎么没被检测出来😡
This commit is contained in:
parent
8d6bbc00b9
commit
919c5c8ff0
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ public abstract class AmmoSupplierItem extends Item {
|
|||
case RIFLE -> c.rifleAmmo;
|
||||
case SHOTGUN -> c.shotgunAmmo;
|
||||
case SNIPER -> c.sniperAmmo;
|
||||
}).orElse(0d) + ammoToAdd;
|
||||
}).orElse(0) + ammoToAdd;
|
||||
switch (this.type) {
|
||||
case HANDGUN -> capability.handgunAmmo = newAmmoCount;
|
||||
case RIFLE -> capability.rifleAmmo = newAmmoCount;
|
||||
|
|
Loading…
Add table
Reference in a new issue