mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-11 18:22:08 -07:00
Update to Minecraft 1.9
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user