mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-02 14:27:59 +01:00
Fixed EntityTame event firing too many times.
This commit is contained in:
parent
d48e9c22f5
commit
68695fb9d6
@ -419,11 +419,6 @@ public class EntityWolf extends EntityAnimal {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void d(boolean flag) {
|
public void d(boolean flag) {
|
||||||
// CraftBukkit start
|
|
||||||
EntityTameEvent event = CraftEventFactory.callEntityTameEvent(this, null);
|
|
||||||
|
|
||||||
if (!event.isCancelled()) {
|
|
||||||
// CraftBukkit end
|
|
||||||
byte b0 = this.datawatcher.a(16);
|
byte b0 = this.datawatcher.a(16);
|
||||||
|
|
||||||
if (flag) {
|
if (flag) {
|
||||||
@ -432,5 +427,4 @@ public class EntityWolf extends EntityAnimal {
|
|||||||
this.datawatcher.b(16, Byte.valueOf((byte) (b0 & -5)));
|
this.datawatcher.b(16, Byte.valueOf((byte) (b0 & -5)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user