减少火箭炮推动距离

This commit is contained in:
Atsuishio 2025-07-13 22:27:36 +08:00 committed by Light_Quanta
parent 94a0e76973
commit aea798837b
No known key found for this signature in database
GPG key ID: 11A39A1B8C890959

View file

@ -97,6 +97,12 @@ public class Type63Entity extends ContainerMobileVehicleEntity implements GeoEnt
this.hoe2 = new OBB(this.position().toVector3f(), new Vector3f(0.125f, 0.125f, 0.875f), new Quaternionf(), OBB.Part.INTERACTIVE);
}
@Override
public void playerTouch(Player pPlayer) {
if (pPlayer.position().distanceToSqr(position()) > 1.2) return;
super.playerTouch(pPlayer);
}
@Override
protected void defineSynchedData(SynchedEntityData.Builder builder) {
super.defineSynchedData(builder);