Update to Minecraft 1.8
For more information please see http://www.spigotmc.org/ By: Thinkofdeath <thinkofdeath@spigotmc.org>
This commit is contained in:
19
paper-server/nms-patches/EntityVillager.patch
Normal file
19
paper-server/nms-patches/EntityVillager.patch
Normal file
@@ -0,0 +1,19 @@
|
||||
--- ../work/decompile-bb26c12b/net/minecraft/server/EntityVillager.java 2014-11-27 08:59:46.741421670 +1100
|
||||
+++ src/main/java/net/minecraft/server/EntityVillager.java 2014-11-27 08:42:10.144850927 +1100
|
||||
@@ -1,6 +1,7 @@
|
||||
package net.minecraft.server;
|
||||
|
||||
import java.util.Iterator;
|
||||
+import org.bukkit.craftbukkit.entity.CraftVillager;
|
||||
|
||||
public class EntityVillager extends EntityAgeable implements NPC, IMerchant {
|
||||
|
||||
@@ -28,7 +29,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);
|
||||
this.a(0.6F, 1.8F);
|
||||
((Navigation) this.getNavigation()).b(true);
|
||||
Reference in New Issue
Block a user