Update WorldInitSkipSpawn.java

This commit is contained in:
CrazyCloudCraft | Argantiu 2022-07-15 13:01:09 +02:00 committed by GitHub
parent b12bea3bd7
commit 923bfbf16d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,6 +12,7 @@ public class WorldInitSkipSpawn implements Listener {
@EventHandler
public void worldInit(WorldInitEvent e) {
World world = e.getWorld();
world.getWorldBorder().setWarningDistance(0);
SystemWorld sw = SystemWorld.getSystemWorld(world.getName());
if(sw == null)
return;