9
0
mirror of https://gitlab.com/SamB440/rpgregions-2.git synced 2025-12-27 10:49:08 +00:00

Fix potential thread async error

This commit is contained in:
SamB440
2021-05-11 18:15:25 +01:00
parent e27a9518a1
commit fc2db8f5ca

View File

@@ -55,7 +55,7 @@ public class RegionListener implements Listener {
}
}
this.checkEffects(configuredRegion, player);
Bukkit.getScheduler().runTask(plugin, () -> this.checkEffects(configuredRegion, player));
if (configuredRegion.alwaysShowTitles() && event.hasChanged() && has && prioritised) {
this.sendTitles(player, configuredRegion, false);