From 1695ef38badc02ed6b5abae2d7bb6175e62855bc Mon Sep 17 00:00:00 2001 From: efefury <69400149+efefury@users.noreply.github.com> Date: Wed, 7 Sep 2022 12:00:36 +0000 Subject: neuitemedtior revert (#259) --- .../notenoughupdates/itemeditor/NEUItemEditor.java | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'src/main') diff --git a/src/main/java/io/github/moulberry/notenoughupdates/itemeditor/NEUItemEditor.java b/src/main/java/io/github/moulberry/notenoughupdates/itemeditor/NEUItemEditor.java index 9dc8d8b0..6a080ff8 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/itemeditor/NEUItemEditor.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/itemeditor/NEUItemEditor.java @@ -93,19 +93,6 @@ public class NEUItemEditor extends GuiScreen { extraAttributes.removeTag("uuid"); extraAttributes.removeTag("timestamp"); - if (extraAttributes.hasKey("petInfo")) { - try { - NBTTagCompound petInfo = JsonToNBT.getTagFromJson(extraAttributes.getString("petInfo")); - - petInfo.removeTag("\"heldItem\""); - petInfo.setString("\"exp\"", "0.0"); - petInfo.setString("\"candyUsed\"", "0"); - petInfo.removeTag("\"uuid\""); - - extraAttributes.setString("petInfo", petInfo.toString()); - } catch (NBTException ignored) { - } - } savedRepoItem = NotEnoughUpdates.INSTANCE.manager.getItemInformation().getOrDefault(internalName, null); internalName = internalName == null ? "" : internalName; -- cgit