fix client bullet physics

This commit is contained in:
Sen 2025-06-16 10:37:36 +02:00
parent d566db0fc5
commit 2281e55a09
Signed by: sen
GPG key ID: 3AC50A6F47D1B722

View file

@ -285,7 +285,7 @@ public class EntityBullet extends Entity implements IProjectile, IObjectData
// this.ticksInAir = 0; // this.ticksInAir = 0;
// } // }
} }
else else if(!this.worldObj.client)
{ {
State state = movingobjectposition.block != null ? this.worldObj.getState(movingobjectposition.block) : null; State state = movingobjectposition.block != null ? this.worldObj.getState(movingobjectposition.block) : null;
if(state == null || state.getBlock().onShot(this.worldObj, movingobjectposition.block, state, this)) { if(state == null || state.getBlock().onShot(this.worldObj, movingobjectposition.block, state, this)) {