mirror of
https://github.com/GTNewHorizons/ForgeMultipart.git
synced 2026-11-13 17:04:25 +00:00
Fix crash with null block materials
This commit is contained in:
1 parent
c076561eab
commit
8aae1850ec
1 file changed
+1
-1
@@ -41,7 +41,7 @@ class BlockMicroMaterial(val block:Block, val meta:Int = 0) extends IMicroMateri
|
||||
|
||||
if(iblock == null)
|
||||
for(i <- 0 until 6)
|
||||
icons(i) = MicroblockProxy.renderBlocks.getBlockIcon(null)
|
||||
icons(i) = MicroblockProxy.renderBlocks.getIconSafe(null)
|
||||
else
|
||||
for(i <- 0 until 6)
|
||||
icons(i) = MicroblockProxy.renderBlocks.getIconSafe(iblock.getIcon(i, meta))
|
||||
|
||||
Reference in new issue
Block a user