mirror of
https://github.com/GTNewHorizons/Postea.git
synced 2026-10-26 14:24:19 +00:00
Merge pull request #1 from GTNewHorizons/item-fixer-utility-null-item
Fix crash caused by processing null item
This commit is contained in:
1 file changed
+1
@@ -18,6 +18,7 @@ public abstract class ItemFixerUtility {
|
||||
if (tag.hasKey("id")) {
|
||||
short id = tag.getShort("id");
|
||||
Item item = Item.getItemById(id);
|
||||
if (item == null) return;
|
||||
String itemNameInternal = GameRegistry.findUniqueIdentifierFor(item).modId + ":"
|
||||
+ GameRegistry.findUniqueIdentifierFor(item).name;
|
||||
|
||||
|
||||
Reference in new issue
Block a user