mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-20 03:35:51 +00:00
Prevent World Settings from saving inside tests
This commit is contained in:
parent
eb321e9ee5
commit
ebf6725d7e
@ -19,6 +19,7 @@ import org.bukkit.World;
|
||||
|
||||
import io.github.thebusybiscuit.cscorelib2.collections.OptionalMap;
|
||||
import io.github.thebusybiscuit.cscorelib2.config.Config;
|
||||
import io.github.thebusybiscuit.slimefun4.api.MinecraftVersion;
|
||||
import io.github.thebusybiscuit.slimefun4.api.SlimefunAddon;
|
||||
import me.mrCookieSlime.Slimefun.SlimefunPlugin;
|
||||
import me.mrCookieSlime.Slimefun.Objects.SlimefunItem.SlimefunItem;
|
||||
@ -247,8 +248,10 @@ public class PerWorldSettingsService {
|
||||
}
|
||||
}
|
||||
|
||||
if (SlimefunPlugin.getMinecraftVersion() != MinecraftVersion.UNIT_TEST) {
|
||||
config.save();
|
||||
}
|
||||
}
|
||||
else {
|
||||
disabledWorlds.add(world.getUID());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user