减少火箭炮推动距离
This commit is contained in:
parent
94a0e76973
commit
aea798837b
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue