修复快艇弹药读取问题

This commit is contained in:
Atsuihsio 2025-03-14 23:22:12 +08:00
parent 94a1ebc9f1
commit 956aa1beaf
2 changed files with 5 additions and 1 deletions

View file

@ -11,7 +11,7 @@ mod_id=superbwarfare
mod_name=Superb Warfare
mod_license=GNU General Public License v3.0
mod_description=A Warfare Mod
mod_version=0.6.2
mod_version=0.6.3
mod_authors=Atsuishio, Roki27, Light_Quanta
# dependencies

View file

@ -148,6 +148,10 @@ public class SpeedboatEntity extends ContainerMobileVehicleEntity implements Geo
sendParticle(serverLevel, ParticleTypes.BUBBLE_COLUMN_UP, this.getX() - 4.5 * this.getLookAngle().x, this.getY() - 0.25, this.getZ() - 4.5 * this.getLookAngle().z, (int) (40 * Mth.abs(this.entityData.get(POWER))), 0.15, 0.15, 0.15, 0.02, true);
}
if (this.level() instanceof ServerLevel) {
this.handleAmmo();
}
turretAngle(40, 40);
lowHealthWarning();
collideBlock();