summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/net/minecraft/server/EntityWolf.java16
1 files changed, 5 insertions, 11 deletions
diff --git a/src/main/java/net/minecraft/server/EntityWolf.java b/src/main/java/net/minecraft/server/EntityWolf.java
index 2ca4e040..e759e43b 100644
--- a/src/main/java/net/minecraft/server/EntityWolf.java
+++ b/src/main/java/net/minecraft/server/EntityWolf.java
@@ -419,18 +419,12 @@ 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);
+ byte b0 = this.datawatcher.a(16);
- if (flag) {
- this.datawatcher.b(16, Byte.valueOf((byte) (b0 | 4)));
- } else {
- this.datawatcher.b(16, Byte.valueOf((byte) (b0 & -5)));
- }
+ if (flag) {
+ this.datawatcher.b(16, Byte.valueOf((byte) (b0 | 4)));
+ } else {
+ this.datawatcher.b(16, Byte.valueOf((byte) (b0 & -5)));
}
}
}