3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-11-16 21:10:17 +01:00

Fixed EntityTame event firing too many times.

Dieser Commit ist enthalten in:
EvilSeph 2011-06-17 23:06:20 -04:00
Ursprung d48e9c22f5
Commit 68695fb9d6

Datei anzeigen

@ -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) {
@ -433,4 +428,3 @@ public class EntityWolf extends EntityAnimal {
} }
} }
} }
}