From 2b488002eca5f0eb21e769e5bc9d75cf105f09c3 Mon Sep 17 00:00:00 2001 From: Aesen Vismea Date: Fri, 6 Mar 2015 17:38:42 -0500 Subject: [PATCH] Fix on servers --- src/main/java/com/gameminers/farrago/ClientProxy.java | 5 +++++ src/main/java/com/gameminers/farrago/FarragoMod.java | 3 --- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/gameminers/farrago/ClientProxy.java b/src/main/java/com/gameminers/farrago/ClientProxy.java index d57370f..48f5d8e 100644 --- a/src/main/java/com/gameminers/farrago/ClientProxy.java +++ b/src/main/java/com/gameminers/farrago/ClientProxy.java @@ -10,11 +10,15 @@ import org.apache.commons.io.FileUtils; import org.apache.commons.lang3.StringEscapeUtils; +import com.gameminers.farrago.client.render.RenderBlunderbussProjectile; +import com.gameminers.farrago.entity.EntityBlunderbussProjectile; import com.gameminers.farrago.kahur.client.InitScreen; import com.gameminers.farrago.pane.PaneBranding; import com.gameminers.farrago.pane.PaneOrbGlow; import com.google.common.base.Charsets; +import cpw.mods.fml.client.registry.RenderingRegistry; + public class ClientProxy implements Proxy { @@ -33,6 +37,7 @@ public void init() { if (FarragoMod.brand != null) { new PaneBranding().autoOverlay(GuiMainMenu.class); } + RenderingRegistry.registerEntityRenderingHandler(EntityBlunderbussProjectile.class, new RenderBlunderbussProjectile()); } @Override diff --git a/src/main/java/com/gameminers/farrago/FarragoMod.java b/src/main/java/com/gameminers/farrago/FarragoMod.java index b517323..5a2c54b 100644 --- a/src/main/java/com/gameminers/farrago/FarragoMod.java +++ b/src/main/java/com/gameminers/farrago/FarragoMod.java @@ -39,7 +39,6 @@ import com.gameminers.farrago.block.BlockCombustor; import com.gameminers.farrago.block.BlockOre; import com.gameminers.farrago.block.BlockScrapper; -import com.gameminers.farrago.client.render.RenderBlunderbussProjectile; import com.gameminers.farrago.entity.EntityBlunderbussProjectile; import com.gameminers.farrago.gen.YttriumGenerator; import com.gameminers.farrago.item.ItemBlunderbuss; @@ -53,7 +52,6 @@ import com.gameminers.farrago.tileentity.TileEntityScrapper; import com.google.common.collect.Lists; -import cpw.mods.fml.client.registry.RenderingRegistry; import cpw.mods.fml.common.FMLCommonHandler; import cpw.mods.fml.common.IFuelHandler; import cpw.mods.fml.common.Mod; @@ -151,7 +149,6 @@ public int getBurnTime(ItemStack fuel) { GameRegistry.registerItem(FONDUE, "fondue"); GameRegistry.registerItem(VIVID_ORB, "vividOrb"); EntityRegistry.registerModEntity(EntityBlunderbussProjectile.class, "blunderbussShot", 5, this, 64, 12, true); - RenderingRegistry.registerEntityRenderingHandler(EntityBlunderbussProjectile.class, new RenderBlunderbussProjectile()); ORE.registerOres(); DUST.registerOres(); INGOT.registerOres();