mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-23 21:49:58 +00:00
Fixed crash when teleporting to painted glowstone.
This commit is contained in:
1 parent
b7b9e6a892
commit
0deb1bd598
1 file changed
+4
@@ -2,6 +2,7 @@ package crazypants.enderio.machine.painter;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.client.renderer.RenderBlocks;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler;
|
||||
@@ -31,6 +32,9 @@ public class BlockPaintedGlowstoneRenderer implements ISimpleBlockRenderingHandl
|
||||
}
|
||||
TileEntityPaintedBlock te = (TileEntityPaintedBlock) tile;
|
||||
Block srcBlk = te.getSourceBlock();
|
||||
if(srcBlk == null) {
|
||||
srcBlk = Blocks.glowstone;
|
||||
}
|
||||
|
||||
IBlockAccess origBa = rb.blockAccess;
|
||||
rb.blockAccess = new PaintedAccessWrapper(origBa);
|
||||
|
||||
Reference in new issue
Block a user