Fix crash caused by processing null item

This commit is contained in:
miozune committed 2024-01-16 00:01:59 +09:00
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;