Archiviert
13
0
Dieses Repository wurde am 2024-12-25 archiviert. Du kannst Dateien ansehen und es klonen, aber nicht pushen oder Issues/Pull-Requests öffnen.
Paper-Old/nms-patches/EntityVillager.patch
Thinkofdeath 90ac03522a Revert "Remove patch headers"
This reverts commit d6e3dff7d8.
2014-11-28 23:02:15 +00:00

20 Zeilen
836 B
Diff

--- ../work/decompile-8eb82bde//net/minecraft/server/EntityVillager.java 2014-11-28 17:43:43.177707433 +0000
+++ src/main/java/net/minecraft/server/EntityVillager.java 2014-11-28 17:38:22.000000000 +0000
@@ -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);