1
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:
TheBusyBiscuit 2020-05-08 19:05:03 +02:00
parent eb321e9ee5
commit ebf6725d7e

View File

@ -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,7 +248,9 @@ public class PerWorldSettingsService {
}
}
config.save();
if (SlimefunPlugin.getMinecraftVersion() != MinecraftVersion.UNIT_TEST) {
config.save();
}
}
else {
disabledWorlds.add(world.getUID());