mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-24 05:54:27 +00:00
Fixed crash in painter.
This commit is contained in:
1 parent
766b26dff3
commit
a377948115
1 file changed
+5
-2
@@ -58,8 +58,11 @@ public final class PainterUtil {
|
||||
tag = new NBTTagCompound();
|
||||
item.setTagCompound(tag);
|
||||
}
|
||||
tag.setString(BlockPainter.KEY_SOURCE_BLOCK_ID, Block.blockRegistry.getNameForObject(source));
|
||||
tag.setInteger(BlockPainter.KEY_SOURCE_BLOCK_META, meta);
|
||||
String name = Block.blockRegistry.getNameForObject(source);
|
||||
if(name != null && !name.trim().isEmpty()) {
|
||||
tag.setString(BlockPainter.KEY_SOURCE_BLOCK_ID, name);
|
||||
tag.setInteger(BlockPainter.KEY_SOURCE_BLOCK_META, meta);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user