Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,13 @@ public static void add(final Runnable call) {

@SubscribeEvent
public static void serverTick(ServerTickEvent.Post event) {
if (event.hasTime()) {
while (true) {
final Runnable runnable = callQueue.poll();
if (runnable == null) {
return;
}
AdvancedPeripherals.debug("Running queued server worker call: " + runnable);
runnable.run();
while (true) {
final Runnable runnable = callQueue.poll();
if (runnable == null) {
return;
}
AdvancedPeripherals.debug("Running queued server worker call: " + runnable);
runnable.run();
}
}
}
Loading