From c2bac8abfeb5b799ac28aa9bec2de09aee4d012e Mon Sep 17 00:00:00 2001 From: Tyler Murphy Date: Thu, 28 Apr 2022 15:56:47 -0400 Subject: [PATCH] 1.18 spawn fix --- .../java/net/tylermurphy/hideAndSeek/configuration/Config.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/tylermurphy/hideAndSeek/configuration/Config.java b/src/main/java/net/tylermurphy/hideAndSeek/configuration/Config.java index 284f829..c021fce 100644 --- a/src/main/java/net/tylermurphy/hideAndSeek/configuration/Config.java +++ b/src/main/java/net/tylermurphy/hideAndSeek/configuration/Config.java @@ -134,7 +134,7 @@ public class Config { //Spawn spawnPosition = new Vector( config.getDouble("spawns.game.x"), - Math.max(0, Math.min(255, config.getDouble("spawns.game.y"))), + Math.max(Version.atLeast("1.18") ? -64 : 0, Math.min(255, config.getDouble("spawns.game.y"))), config.getDouble("spawns.game.z") ); spawnWorld = config.getString("spawns.game.world");