summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorOnyxDarkKnight <sor1n.iliutza16@gmail.com>2014-01-04 20:26:45 +0200
committerOnyxDarkKnight <sor1n.iliutza16@gmail.com>2014-01-04 20:26:45 +0200
commite74ff81169182f931f1df3c3495fc4999bfdf6e5 (patch)
tree962141aa479d09a16d8ca0dc36c282f8cfa592c3 /common
parentef7fe109a0a58023725d87d4618ace6cfc4326d4 (diff)
Did I fix it?
Diffstat (limited to 'common')
-rw-r--r--common/darkknight/jewelrycraft/JewelrycraftMod.java12
1 files changed, 10 insertions, 2 deletions
diff --git a/common/darkknight/jewelrycraft/JewelrycraftMod.java b/common/darkknight/jewelrycraft/JewelrycraftMod.java
index 2997907..4da9b18 100644
--- a/common/darkknight/jewelrycraft/JewelrycraftMod.java
+++ b/common/darkknight/jewelrycraft/JewelrycraftMod.java
@@ -27,6 +27,8 @@ import cpw.mods.fml.common.network.NetworkMod.SidedPacketHandler;
import cpw.mods.fml.common.network.Player;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.VillagerRegistry;
+import cpw.mods.fml.relauncher.Side;
+import cpw.mods.fml.relauncher.SideOnly;
import darkknight.jewelrycraft.block.BlockList;
import darkknight.jewelrycraft.client.JewelryCraftClient;
import darkknight.jewelrycraft.config.ConfigHandler;
@@ -76,7 +78,13 @@ public class JewelrycraftMod implements IConnectionHandler
BlockList.preInit(e);
CraftingRecipes.preInit(e);
JewelrycraftUtil.addMetals();
-
+ registerVillagers();
+ proxy.registerRenderers();
+ }
+
+ @SideOnly(Side.CLIENT)
+ public void registerVillagers()
+ {
VillagerRegistry.instance().registerVillagerId(3000);
VillagerRegistry.instance().registerVillageTradeHandler(3000, new JCTrades());
VillagerRegistry.instance().registerVillagerSkin(3000, new ResourceLocation("jewelrycraft", "textures/entities/jeweler.png"));
@@ -89,7 +97,7 @@ public class JewelrycraftMod implements IConnectionHandler
{
logger.severe("Error registering Jewelrycraft Structures with Vanilla Minecraft: this is expected in versions earlier than 1.6.4");
}
- proxy.registerRenderers();
+
}
@EventHandler