reduce diff

This commit is contained in:
Jesse Boyd
2019-11-21 07:57:32 +00:00
parent 52a502a1c6
commit 37b6c406ac
18 changed files with 248 additions and 269 deletions

View File

@ -28,7 +28,7 @@ import static com.google.common.base.Preconditions.checkNotNull;
/**
* This class is currently only for internal use. Do not post or catch this event.
*/
public class CommandEvent extends AbstractCancellable implements Runnable {
public class CommandEvent extends AbstractCancellable {
private final Actor actor;
private final String arguments;
@ -66,7 +66,8 @@ public class CommandEvent extends AbstractCancellable implements Runnable {
}
@Override
public void run() {
public boolean call() {
PlatformCommandManager.getInstance().handleCommandOnCurrentThread(this);
return true;
}
}