mirror of
https://github.com/GTNewHorizons/Postea.git
synced 2026-11-24 05:54:31 +00:00
Fix crash caused by processing null item
This commit is contained in:
1 parent
4d247eb701
commit
374cad1e5c
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