diff options
Diffstat (limited to 'nms-patches')
-rw-r--r-- | nms-patches/EntityVillager.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/nms-patches/EntityVillager.patch b/nms-patches/EntityVillager.patch index fa7f585a..8693d0ff 100644 --- a/nms-patches/EntityVillager.patch +++ b/nms-patches/EntityVillager.patch @@ -15,6 +15,22 @@ public class EntityVillager extends EntityAgeable implements NPC, IMerchant { +@@ -18,13 +26,13 @@ + @Nullable + private EntityHuman tradingPlayer; + @Nullable +- private MerchantRecipeList trades; ++ public MerchantRecipeList trades; // PAIL private -> public + private int bF; + private boolean bG; + private boolean bH; + public int riches; + private String bJ; +- private int bK; ++ public int bK; // PAIL private -> public // PAIL rename careerID + private int bL; + private boolean bM; + private boolean bN; @@ -37,7 +45,7 @@ public EntityVillager(World world, int i) { @@ -40,6 +56,15 @@ } } +@@ -432,7 +447,7 @@ + return this.trades; + } + +- private void dx() { ++ public void dx() { // CraftBukkit private -> public // PAIL rename populateTrades + EntityVillager.IMerchantRecipeOption[][][] aentityvillager_imerchantrecipeoption = EntityVillager.bP[this.getProfession()]; + + if (this.bK != 0 && this.bL != 0) { @@ -460,7 +475,20 @@ for (int l = 0; l < k; ++l) { EntityVillager.IMerchantRecipeOption entityvillager_imerchantrecipeoption = aentityvillager_imerchantrecipeoption3[l]; |