diff options
Diffstat (limited to 'src/main/java/com/thatgravyboat/skyblockhud/tracker/TrackerObject.java')
-rw-r--r-- | src/main/java/com/thatgravyboat/skyblockhud/tracker/TrackerObject.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/com/thatgravyboat/skyblockhud/tracker/TrackerObject.java b/src/main/java/com/thatgravyboat/skyblockhud/tracker/TrackerObject.java index 6013b09..1c6e54d 100644 --- a/src/main/java/com/thatgravyboat/skyblockhud/tracker/TrackerObject.java +++ b/src/main/java/com/thatgravyboat/skyblockhud/tracker/TrackerObject.java @@ -38,6 +38,11 @@ public class TrackerObject { if (jsonObject.has("enchanted") && jsonObject.get("enchanted").getAsBoolean()) { stack.setTagInfo("ench", new NBTTagList()); } + if (!jsonObject.get("id").getAsString().contains("entity:")) { + NBTTagCompound extraAttributes = new NBTTagCompound(); + extraAttributes.setString("id", jsonObject.get("id").getAsString()); + stack.setTagInfo("ExtraAttributes", extraAttributes); + } return stack; } |