mirror of
https://github.com/kaboomserver/extras.git
synced 2024-06-03 10:51:21 +00:00
Make teleport centered
This commit is contained in:
parent
c42e41b98f
commit
fbc5958947
|
@ -184,7 +184,7 @@ public final class EntitySpawn implements Listener {
|
|||
final WorldBorder worldBorder = world.getWorldBorder();
|
||||
|
||||
if (PLUGIN.getConfig().getBoolean("randomizeSpawn") && event.getPlayer().getBedSpawnLocation() != event.getSpawnLocation()) {
|
||||
event.setSpawnLocation(new Location(world, RANDOM.nextDouble(-300000000D, 30000000D), 100D, RANDOM.nextDouble(-300000000D, 30000000D)));
|
||||
event.setSpawnLocation(new Location(world, RANDOM.nextDouble(-300000000D, 30000000D) + .5, 100D, RANDOM.nextDouble(-300000000D, 30000000D) + .5));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue