Skip to content

Commit

Permalink
update for core showErrors fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed May 22, 2022
1 parent 0502818 commit 43556ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -108,9 +108,9 @@ public void onEnable() {
versionTag = this.getDescription().getVersion();

CoreUtilities.noDebugContext = new BukkitTagContext(null, null, null, false, null);
CoreUtilities.noDebugContext.showErrors = () -> false;
CoreUtilities.basicContext = new BukkitTagContext(null, null, null, true, null);
CoreUtilities.errorButNoDebugContext = new BukkitTagContext(null, null, null, false, null);
CoreUtilities.errorButNoDebugContext.showErrors = true;
// Load Denizen's core
DenizenCore.init(coreImplementation);
}
Expand Down
Expand Up @@ -27,7 +27,7 @@ public void parseTags(ReplaceableTagEvent event) {
Debug.echoError("Escape tag '" + event.raw_tag + "' does not have a value!");
return;
}
ObjectTag read = TagManager.tagObject(event.getValue(), event.getContext());
ObjectTag read = TagManager.tagObject(event.getValue(), event.getAttributes().context);
event.setReplacedObject(CoreUtilities.autoAttrib(read, event.getAttributes().fulfill(1)));
}
}
Expand Down

0 comments on commit 43556ea

Please sign in to comment.