Skip to content

Commit

Permalink
Don't failishly recreate context in <parse:> tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Morphan1 committed Jul 22, 2015
1 parent 08e488e commit 61f36a0
Showing 1 changed file with 1 addition and 5 deletions.
Expand Up @@ -32,11 +32,7 @@ public void parseTags(ReplaceableTagEvent event) {
dB.echoError("Escape tag '" + event.raw_tag + "' does not have a value!");
return;
}
ScriptEntry se = event.getAttributes().getScriptEntry();
String read = TagManager.tag(TagManager.cleanOutputFully(event.getValue()), new BukkitTagContext(
(se != null ? ((BukkitScriptEntryData) se.entryData).getPlayer() : null),
(se != null ? ((BukkitScriptEntryData) se.entryData).getNPC() : null), false, se,
se != null ? se.shouldDebug() : true, se != null ? se.getScript() : null));
String read = TagManager.tag(TagManager.cleanOutputFully(event.getValue()), event.getContext());
event.setReplaced(new Element(read).getAttribute(event.getAttributes().fulfill(1)));
}
}
Expand Down

0 comments on commit 61f36a0

Please sign in to comment.