mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-14 03:35:51 -07:00
Fixed EntityTame event firing too many times.
This commit is contained in:
@@ -419,11 +419,6 @@ public class EntityWolf extends EntityAnimal {
|
||||
}
|
||||
|
||||
public void d(boolean flag) {
|
||||
// CraftBukkit start
|
||||
EntityTameEvent event = CraftEventFactory.callEntityTameEvent(this, null);
|
||||
|
||||
if (!event.isCancelled()) {
|
||||
// CraftBukkit end
|
||||
byte b0 = this.datawatcher.a(16);
|
||||
|
||||
if (flag) {
|
||||
@@ -433,4 +428,3 @@ public class EntityWolf extends EntityAnimal {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user