Skip to content

Commit

Permalink
Fix InventoryTag properties handling (#2607)
Browse files Browse the repository at this point in the history
  • Loading branch information
tal5 committed Mar 28, 2024
1 parent 938fcc3 commit 87f0f40
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -407,10 +407,9 @@ public static void internalApplyPropertySet(InventoryTag result, TagContext cont
continue;
}
String name = CoreUtilities.toLowerCase(data.get(0));
String description = ObjectFetcher.unescapeProperty(data.get(1));
ElementTag descriptionElement = new ElementTag(description);
Mechanism mechanism = new Mechanism(data.get(0), descriptionElement, context);
if (!name.equals("holder") && !name.equals("uniquifier") && !name.equals("size") && !name.equals("script_name")) {
String description = ObjectFetcher.unescapeProperty(data.get(1));
Mechanism mechanism = new Mechanism(name, ObjectFetcher.pickObjectFor(description, context), context);
result.safeAdjust(mechanism);
}
}
Expand Down

0 comments on commit 87f0f40

Please sign in to comment.