Moved into EntityVillager

This commit is contained in:
LexManos 2012-10-20 02:42:34 -07:00
parent 2028b0aa7f
commit 7afbc1ab93

View file

@ -1,20 +0,0 @@
--- ../src-base/common/net/minecraft/src/ItemMonsterPlacer.java
+++ ../src-work/common/net/minecraft/src/ItemMonsterPlacer.java
@@ -2,6 +2,8 @@
import cpw.mods.fml.common.Side;
import cpw.mods.fml.common.asm.SideOnly;
+import cpw.mods.fml.common.registry.VillagerRegistry;
+
import java.util.Iterator;
import java.util.List;
@@ -80,7 +82,7 @@
if (var8 instanceof EntityVillager)
{
EntityVillager var9 = (EntityVillager)var8;
- var9.func_70938_b(var9.func_70681_au().nextInt(5));
+ VillagerRegistry.applyRandomTrade(var9, var9.func_70681_au());
p_77840_0_.func_72838_d(var9);
return true;
}