summaryrefslogtreecommitdiffstats
path: root/nms-patches/EntityPig.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nms-patches/EntityPig.patch')
-rw-r--r--nms-patches/EntityPig.patch15
1 files changed, 8 insertions, 7 deletions
diff --git a/nms-patches/EntityPig.patch b/nms-patches/EntityPig.patch
index 2f7637bb..77e77006 100644
--- a/nms-patches/EntityPig.patch
+++ b/nms-patches/EntityPig.patch
@@ -1,14 +1,15 @@
--- a/net/minecraft/server/EntityPig.java
+++ b/net/minecraft/server/EntityPig.java
-@@ -1,5 +1,7 @@
- package net.minecraft.server;
+@@ -4,6 +4,8 @@
+ import java.util.Iterator;
+ import java.util.Set;
+import org.bukkit.craftbukkit.event.CraftEventFactory; // CraftBukkit
+
public class EntityPig extends EntityAnimal {
- private final PathfinderGoalPassengerCarrotStick bm;
-@@ -112,6 +114,12 @@
+ private static final DataWatcherObject<Boolean> bv = DataWatcher.a(EntityPig.class, DataWatcherRegistry.h);
+@@ -130,6 +132,12 @@
if (!this.world.isClientSide && !this.dead) {
EntityPigZombie entitypigzombie = new EntityPigZombie(this.world);
@@ -18,10 +19,10 @@
+ }
+ // CraftBukkit end
+
- entitypigzombie.setEquipment(0, new ItemStack(Items.GOLDEN_SWORD));
+ entitypigzombie.setSlot(EnumItemSlot.MAINHAND, new ItemStack(Items.GOLDEN_SWORD));
entitypigzombie.setPositionRotation(this.locX, this.locY, this.locZ, this.yaw, this.pitch);
- entitypigzombie.k(this.ce());
-@@ -120,7 +128,8 @@
+ entitypigzombie.m(this.cR());
+@@ -138,7 +146,8 @@
entitypigzombie.setCustomNameVisible(this.getCustomNameVisible());
}