Skip to content

Commit 1b90e26

Browse files
committed
Use new height
1 parent cb70ae4 commit 1b90e26

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/systems/kscott/randomspawnplus/spawn/SpawnFinder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,8 @@ public boolean checkSpawn(Location location) {
242242
}
243243

244244
public int getHighestY(World world, int x, int z) {
245-
int i = 255;
246-
while (i > 0) {
245+
int i = 320;
246+
while (i > -64) {
247247
if (!Blocks.isEmpty(new Location(world, x, i, z).getBlock())) {
248248
if (config.getBoolean("debug-mode"))
249249
plugin.getLogger().info(Integer.toString(i));

0 commit comments

Comments
 (0)