mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-24 05:54:27 +00:00
1 parent
19c73082d3
commit
5c5b2a3886
1 file changed
+5
-2
@@ -57,8 +57,11 @@ public final class PainterUtil {
|
||||
Block sourceId = PainterUtil.getSourceBlock(item);
|
||||
int meta = PainterUtil.getSourceBlockMetadata(item);
|
||||
if(sourceId != null) {
|
||||
ItemStack is = new ItemStack(Item.getItemFromBlock(sourceId), 1, meta);
|
||||
sourceName = is.getDisplayName();
|
||||
Item itemFromBlock = Item.getItemFromBlock(sourceId);
|
||||
if (itemFromBlock != null) {
|
||||
ItemStack is = new ItemStack(itemFromBlock, 1, meta);
|
||||
sourceName = is.getDisplayName();
|
||||
}
|
||||
}
|
||||
return Lang.localize("blockPainter.paintedWith") + " " + sourceName;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user