Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberpwnn committed May 23, 2023
1 parent 2d390ae commit f5c4736
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,10 @@ public class EventController extends TickedObject implements IController, Listen
private transient int listenerCount;
private transient double totalTime;
private transient int calls;
private transient final ServerTickEvent ste = new ServerTickEvent();
private transient AtomicBoolean running = new AtomicBoolean(false);
private transient int steTicker;

public EventController() {
super("react", "event", 5000);
start();
}

@Override
Expand All @@ -47,15 +44,13 @@ public String getName() {

@Override
public void start() {
steTicker = J.sr(() -> Bukkit.getPluginManager().callEvent(ste), 0);
React.instance.registerListener(this);
}

@Override
public void stop() {
React.instance.unregisterListener(this);
pullOut();
J.csr(steTicker);
}

@Override
Expand Down

0 comments on commit f5c4736

Please sign in to comment.