Skip to content

Commit 652768f

Browse files
committed
Decrease delay for WorldId requests
1 parent 8a97d5b commit 652768f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

spigot/src/main/java/com/turikhay/mc/mapmodcompanion/spigot/WorldIdHandler.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ public void init() {
2424

2525
@Override
2626
public void scheduleLevelIdPacket(Runnable r, EventSource source) {
27-
plugin.getServer().getScheduler().runTaskLater(plugin, r, 20L * WORLD_ID_PACKET_DELAY);
27+
long delay = source == EventSource.PLUGIN_MESSAGE ? 0L : 20L * WORLD_ID_PACKET_DELAY;
28+
plugin.getServer().getScheduler().runTaskLater(plugin, r, delay);
2829
}
2930

3031
@Override

0 commit comments

Comments
 (0)