@@ -30,8 +30,8 @@
|
||||
|
||||
}
|
||||
|
||||
@@ -146,6 +155,16 @@
|
||||
this.setDeltaMovement(this.getDeltaMovement().add(vec3d.x, entity.isOnGround() ? 0.0D : vec3d.y, vec3d.z));
|
||||
@@ -147,6 +156,16 @@
|
||||
this.setDeltaMovement(this.getDeltaMovement().add(vec3d.x, entity.onGround() ? 0.0D : vec3d.y, vec3d.z));
|
||||
}
|
||||
|
||||
+ // CraftBukkit start - call projectile hit event
|
||||
@@ -47,7 +47,7 @@
|
||||
protected void onHit(MovingObjectPosition movingobjectposition) {
|
||||
MovingObjectPosition.EnumMovingObjectType movingobjectposition_enummovingobjecttype = movingobjectposition.getType();
|
||||
|
||||
@@ -166,6 +185,11 @@
|
||||
@@ -167,6 +186,11 @@
|
||||
protected void onHitEntity(MovingObjectPositionEntity movingobjectpositionentity) {}
|
||||
|
||||
protected void onHitBlock(MovingObjectPositionBlock movingobjectpositionblock) {
|
||||
@@ -56,6 +56,6 @@
|
||||
+ return;
|
||||
+ }
|
||||
+ // CraftBukkit end
|
||||
IBlockData iblockdata = this.level.getBlockState(movingobjectpositionblock.getBlockPos());
|
||||
IBlockData iblockdata = this.level().getBlockState(movingobjectpositionblock.getBlockPos());
|
||||
|
||||
iblockdata.onProjectileHit(this.level, iblockdata, movingobjectpositionblock, this);
|
||||
iblockdata.onProjectileHit(this.level(), iblockdata, movingobjectpositionblock, this);
|
||||
|
||||
Reference in New Issue
Block a user