mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-17 02:55:17 +00:00
Moved into EntityVillager
This commit is contained in:
1 parent
e4702cb09d
commit
89c68c46a2
1 file changed
-20
@@ -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;
|
|
||||||
}
|
|
||||||
Reference in new issue
Block a user