We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a97d5b commit 652768fCopy full SHA for 652768f
1 file changed
spigot/src/main/java/com/turikhay/mc/mapmodcompanion/spigot/WorldIdHandler.java
@@ -24,7 +24,8 @@ public void init() {
24
25
@Override
26
public void scheduleLevelIdPacket(Runnable r, EventSource source) {
27
- plugin.getServer().getScheduler().runTaskLater(plugin, r, 20L * WORLD_ID_PACKET_DELAY);
+ long delay = source == EventSource.PLUGIN_MESSAGE ? 0L : 20L * WORLD_ID_PACKET_DELAY;
28
+ plugin.getServer().getScheduler().runTaskLater(plugin, r, delay);
29
}
30
31
0 commit comments