mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-28 07:55:53 +00:00
21 lines
750 B
Diff
21 lines
750 B
Diff
--- ../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;
|
|
}
|