do not syncload chunks if not absolutly sure it is sync

This commit is contained in:
Aurora 2020-08-21 11:47:16 +02:00 committed by Brianna
parent 4fdfada273
commit 6b92224a5b

View File

@ -264,7 +264,7 @@ public class Move implements Listener {
final Player player = e.getPlayer();
final WorldManager worldManager = plugin.getWorldManager();
if(e.getTo() != null && e.getTo().getWorld() != null){
if(!e.isAsynchronous()){
if(Bukkit.isPrimaryThread()){
e.getTo().getWorld().loadChunk(e.getTo().getChunk()); // Is that needed?
}
if(worldManager.isIslandWorld(e.getTo().getWorld())