properly override push/knockback methods

This prevent the creaking from being pushed with knockback
enchant when it can't move
This commit is contained in:
Lulu13022002
2024-12-04 21:05:57 +01:00
parent f93c8c78db
commit 7d18cb068e
4 changed files with 68 additions and 9 deletions

View File

@@ -65,7 +65,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
- return super.hurtServer(world, source, amount);
+ // Paper start - cancellable death events
+ //return super.hurt(world, source, amount);
+ // return super.hurtServer(world, source, amount);
+ this.queueHealthUpdatePacket = true;
+ boolean damaged = super.hurtServer(world, source, amount);
+ this.queueHealthUpdatePacket = false;