Skip to content

Commit

Permalink
just setSpawnLocation
Browse files Browse the repository at this point in the history
  • Loading branch information
HSGamer committed Feb 9, 2025
1 parent 121efcc commit fb27544
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/main/java/me/hsgamer/morefoworld/WorldUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -239,13 +239,7 @@ public static GameType getGameType(GameMode gameMode) {
}

public static void applyWorldSpawn(Location location) {
World world = location.getWorld();
Location spawnLocation = world.getSpawnLocation();
spawnLocation.setX(location.getX());
spawnLocation.setY(location.getY());
spawnLocation.setZ(location.getZ());
spawnLocation.setYaw(location.getYaw());
spawnLocation.setPitch(location.getPitch());
location.getWorld().setSpawnLocation(location);
}

public enum Feedback {
Expand Down

0 comments on commit fb27544

Please sign in to comment.