正确扣除炮弹
This commit is contained in:
parent
2edc769362
commit
a4a8c57b62
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue