summaryrefslogtreecommitdiffstats
path: root/nms-patches/EntityVillager.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nms-patches/EntityVillager.patch')
-rw-r--r--nms-patches/EntityVillager.patch14
1 files changed, 8 insertions, 6 deletions
diff --git a/nms-patches/EntityVillager.patch b/nms-patches/EntityVillager.patch
index 8b66079e..2d36fde8 100644
--- a/nms-patches/EntityVillager.patch
+++ b/nms-patches/EntityVillager.patch
@@ -1,19 +1,21 @@
--- a/net/minecraft/server/EntityVillager.java
+++ b/net/minecraft/server/EntityVillager.java
-@@ -2,6 +2,12 @@
-
+@@ -3,6 +3,14 @@
import java.util.Iterator;
import java.util.Random;
+ import javax.annotation.Nullable;
++// CraftBukkit start
+import org.bukkit.Bukkit;
-+import org.bukkit.craftbukkit.entity.CraftVillager; // CraftBukkit
++import org.bukkit.craftbukkit.entity.CraftVillager;
+import org.bukkit.craftbukkit.inventory.CraftMerchantRecipe;
+import org.bukkit.entity.Villager;
+import org.bukkit.event.entity.VillagerAcquireTradeEvent;
+import org.bukkit.event.entity.VillagerReplenishTradeEvent;
++// CraftBukkit end
public class EntityVillager extends EntityAgeable implements IMerchant, NPC {
-@@ -30,7 +36,7 @@
+@@ -31,7 +39,7 @@
public EntityVillager(World world, int i) {
super(world);
@@ -22,7 +24,7 @@
this.setProfession(i);
this.setSize(0.6F, 1.95F);
((Navigation) this.getNavigation()).a(true);
-@@ -109,7 +115,14 @@
+@@ -110,7 +118,14 @@
MerchantRecipe merchantrecipe = (MerchantRecipe) iterator.next();
if (merchantrecipe.h()) {
@@ -38,7 +40,7 @@
}
}
-@@ -401,7 +414,20 @@
+@@ -402,7 +417,20 @@
for (int l = 0; l < k; ++l) {
EntityVillager.IMerchantRecipeOption entityvillager_imerchantrecipeoption = aentityvillager_imerchantrecipeoption3[l];