正确扣除炮弹

This commit is contained in:
Light_Quanta 2025-07-13 22:59:33 +08:00
parent 2edc769362
commit a4a8c57b62
No known key found for this signature in database
GPG key ID: 11A39A1B8C890959

View file

@ -201,10 +201,10 @@ public class Type63Entity extends ContainerMobileVehicleEntity implements GeoEnt
return InteractionResult.SUCCESS;
}
} else {
//TODO 正确实现扣除炮弹
for (int i = 0; i < 12; i++) {
if (items.get(i).getItem() instanceof MediumRocketItem) {
items.remove(i);
items.set(i, ItemStack.EMPTY);
setChanged();
player.swing(InteractionHand.MAIN_HAND);
break;
}