mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-21 23:33:48 -07:00
@@ -13,10 +13,10 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
--- a/src/main/java/net/minecraft/world/entity/LivingEntity.java
|
||||
+++ b/src/main/java/net/minecraft/world/entity/LivingEntity.java
|
||||
@@ -0,0 +0,0 @@ public abstract class LivingEntity extends Entity implements Attackable {
|
||||
this.level().getCraftServer().getPluginManager().callEvent(event);
|
||||
|
||||
if (event.isCancelled()) {
|
||||
}
|
||||
entityPlayer.getBukkitEntity().updateInventory();
|
||||
entityPlayer.getBukkitEntity().updateScaledHealth();
|
||||
+ this.stopUsingItem(); // Paper - event is using an item, clear active item to reset its use
|
||||
// Update client
|
||||
Consumable consumable = this.useItem.get(DataComponents.CONSUMABLE);
|
||||
if (consumable != null) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user