diff options
author | Tyler Murphy <tylermurphy534@gmail.com> | 2022-05-06 12:22:04 -0400 |
---|---|---|
committer | Tyler Murphy <tylermurphy534@gmail.com> | 2022-05-06 12:22:04 -0400 |
commit | 134444243a491a5b22c2cc4219e8fdd361ce2693 (patch) | |
tree | 911f4e84daeb86db739cbd61dd8986bcb0eb5326 /src/main/java/net/tylermurphy/hideAndSeek/command/SetSpawnLocation.java | |
parent | add empty space to titles (diff) | |
download | kenshinshideandseek-134444243a491a5b22c2cc4219e8fdd361ce2693.tar.gz kenshinshideandseek-134444243a491a5b22c2cc4219e8fdd361ce2693.tar.bz2 kenshinshideandseek-134444243a491a5b22c2cc4219e8fdd361ce2693.zip |
option to disable mapsave
Diffstat (limited to 'src/main/java/net/tylermurphy/hideAndSeek/command/SetSpawnLocation.java')
-rw-r--r-- | src/main/java/net/tylermurphy/hideAndSeek/command/SetSpawnLocation.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/net/tylermurphy/hideAndSeek/command/SetSpawnLocation.java b/src/main/java/net/tylermurphy/hideAndSeek/command/SetSpawnLocation.java index 7afe861..d5e1cba 100644 --- a/src/main/java/net/tylermurphy/hideAndSeek/command/SetSpawnLocation.java +++ b/src/main/java/net/tylermurphy/hideAndSeek/command/SetSpawnLocation.java @@ -56,7 +56,7 @@ public class SetSpawnLocation implements ICommand { if(world == null){ throw new RuntimeException("Unable to get world: " + spawnWorld); } - if(!world.getName().equals(spawnWorld)){ + if(mapSaveEnabled && !world.getName().equals(spawnWorld)){ Game.worldLoader.unloadMap(); Game.worldLoader = new WorldLoader(world.getName()); } |