SPIGOT-6094: Error loading datapack functions

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2020-08-22 18:19:25 +10:00
parent c87b44f451
commit 513f8d1690
2 changed files with 6 additions and 5 deletions

View File

@@ -71,8 +71,8 @@ public abstract class CommandNode<S> implements Comparable<CommandNode<S>> {
return modifier;
}
public boolean canUse(final S source) {
// CraftBukkit start
// CraftBukkit start
public synchronized boolean canUse(final S source) {
if (source instanceof CommandListenerWrapper) {
try {
((CommandListenerWrapper) source).currentCommand = this;