mirror of
https://github.com/Brettflan/WorldBorder.git
synced 2024-11-22 18:16:24 +01:00
For border crossings where a safe location just inside the border can't be found, the player is now teleported to the spawn location for the current world instead of for the main world
This commit is contained in:
parent
9fcda08b3e
commit
ffd003bf46
@ -27,13 +27,13 @@ dist.javadoc.dir=${dist.dir}/javadoc
|
||||
endorsed.classpath=
|
||||
excludes=
|
||||
file.reference.CalcTest-src=src
|
||||
file.reference.craftbukkit-1.0.0-SNAPSHOT.jar=lib\\craftbukkit-1.0.0-SNAPSHOT.jar
|
||||
file.reference.craftbukkit.jar=lib\\craftbukkit.jar
|
||||
file.reference.Permissions.jar=lib/Permissions.jar
|
||||
includes=**
|
||||
jar.compress=true
|
||||
javac.classpath=\
|
||||
${file.reference.Permissions.jar}:\
|
||||
${file.reference.craftbukkit-1.0.0-SNAPSHOT.jar}
|
||||
${file.reference.craftbukkit.jar}
|
||||
# Space-separated list of extra javac options
|
||||
javac.compilerargs=
|
||||
javac.deprecation=false
|
||||
|
@ -95,7 +95,7 @@ public class BorderCheckTask implements Runnable
|
||||
{
|
||||
if (Config.Debug())
|
||||
Config.LogWarn("Target new location unviable, using spawn.");
|
||||
newLoc = player.getServer().getWorlds().get(0).getSpawnLocation();
|
||||
newLoc = player.getWorld().getSpawnLocation();
|
||||
}
|
||||
|
||||
if (Config.Debug())
|
||||
|
Loading…
Reference in New Issue
Block a user