mirror of
https://github.com/KAMKEEL/CustomNPC-Gecko-Addon.git
synced 2026-11-19 04:59:06 +00:00
Fixed server compatibility of the mod
This commit is contained in:
1 parent
85c3fb5f8b
commit
fe823736b0
3 files changed
+16
-3
No files matched your search
@@ -8,6 +8,8 @@ import com.goodbird.npcgecko.tile.TileEntityCustomModel;
|
||||
import cpw.mods.fml.client.registry.ClientRegistry;
|
||||
import cpw.mods.fml.client.registry.RenderingRegistry;
|
||||
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
|
||||
public class ClientProxy extends CommonProxy {
|
||||
@@ -19,4 +21,7 @@ public class ClientProxy extends CommonProxy {
|
||||
ClientRegistry.bindTileEntitySpecialRenderer(TileEntityCustomModel.class, new RenderTileCustomModel());
|
||||
}
|
||||
|
||||
public World getWorldById(int id){
|
||||
return Minecraft.getMinecraft().theWorld;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user