Paper/nms-patches/EntityVillager.patch

20 lines
742 B
Diff
Raw Normal View History

2015-05-25 12:37:24 +02:00
--- a/net/minecraft/server/EntityVillager.java
+++ b/net/minecraft/server/EntityVillager.java
2015-02-26 23:41:06 +01:00
@@ -2,6 +2,7 @@
import java.util.Iterator;
2015-02-26 23:41:06 +01:00
import java.util.Random;
+import org.bukkit.craftbukkit.entity.CraftVillager; // CraftBukkit
2015-02-26 23:41:06 +01:00
public class EntityVillager extends EntityAgeable implements IMerchant, NPC {
2015-02-26 23:41:06 +01:00
@@ -29,7 +30,7 @@
public EntityVillager(World world, int i) {
super(world);
- this.inventory = new InventorySubcontainer("Items", false, 8);
+ this.inventory = new InventorySubcontainer("Items", false, 8, (CraftVillager) this.getBukkitEntity()); // CraftBukkit add argument
this.setProfession(i);
2015-02-26 23:41:06 +01:00
this.setSize(0.6F, 1.8F);
((Navigation) this.getNavigation()).b(true);