mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-26 06:43:05 +00:00
Fix crash from ExtraUtilities calling getRenderType() on server
This commit is contained in:
1 parent
56a9e84800
commit
b7382f074a
6 files changed
+30
-20
No files matched your search
@@ -21,7 +21,7 @@ import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler;
|
||||
|
||||
import forestry.apiculture.blocks.BlockCandle;
|
||||
import forestry.apiculture.tiles.TileCandle;
|
||||
import forestry.core.proxy.ProxyRenderClient;
|
||||
import forestry.core.proxy.Proxies;
|
||||
|
||||
public class RenderCandleBlock implements ISimpleBlockRenderingHandler {
|
||||
|
||||
@@ -32,7 +32,7 @@ public class RenderCandleBlock implements ISimpleBlockRenderingHandler {
|
||||
|
||||
@Override
|
||||
public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block block, int modelId, RenderBlocks renderer) {
|
||||
if (block.getRenderType() == ProxyRenderClient.getCandleRenderId()) {
|
||||
if (block.getRenderType() == Proxies.render.getCandleRenderId()) {
|
||||
renderBlockCandle(world, x, y, z, (BlockCandle) block);
|
||||
}
|
||||
return true;
|
||||
@@ -45,7 +45,7 @@ public class RenderCandleBlock implements ISimpleBlockRenderingHandler {
|
||||
|
||||
@Override
|
||||
public int getRenderId() {
|
||||
return ProxyRenderClient.getCandleRenderId();
|
||||
return Proxies.render.getCandleRenderId();
|
||||
}
|
||||
|
||||
private static boolean renderBlockCandle(IBlockAccess world, int x, int y, int z, BlockCandle block) {
|
||||
|
||||
Reference in new issue
Block a user