mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2025-01-09 17:27:37 +01:00
do not syncload chunks if not absolutly sure it is sync
This commit is contained in:
parent
4fdfada273
commit
6b92224a5b
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user