Skip to content

Commit

Permalink
add ObjectTag#fixAfterProperties
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed May 4, 2020
1 parent c243695 commit df617da
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ public static <T extends ObjectTag> T getObjectFrom(ObjectType<T> type, String v
description = CoreUtilities.replace(description, "&sc", ";");
((Adjustable) gotten).safeApplyProperty(new Mechanism(new ElementTag(data.get(0)), new ElementTag(description), context));
}
gotten = (T) gotten.fixAfterProperties();
}
return gotten;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,13 @@ default ObjectTag duplicate() {
return this;
}

/**
* If any fixes need to be handled after properties are applied to an object, they should be handled here.
*/
default ObjectTag fixAfterProperties() {
return this;
}

/**
* Sets the prefix for this argument, otherwise uses the default.
*
Expand Down

0 comments on commit df617da

Please sign in to comment.