1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-20 03:35:51 +00:00

fix addon inventories bug with non-default worlds

This commit is contained in:
Mooy1 2021-03-06 00:55:12 -06:00
parent 49950cf64c
commit 4dcf8aabea
2 changed files with 4 additions and 3 deletions

View File

@ -667,9 +667,6 @@ public final class SlimefunPlugin extends JavaPlugin implements SlimefunAddon {
// Handle Slimefun Guide being given on Join
new SlimefunGuideListener(this, config.getBoolean("guide.receive-on-first-join"));
// Load/Unload Worlds in Slimefun
new WorldListener(this);
// Clear the Slimefun Guide History upon Player Leaving
new PlayerProfileListener(this);
}

View File

@ -4,6 +4,7 @@ import java.util.logging.Level;
import javax.annotation.Nonnull;
import io.github.thebusybiscuit.slimefun4.implementation.listeners.WorldListener;
import org.bukkit.Bukkit;
import org.bukkit.World;
@ -57,6 +58,9 @@ public class SlimefunStartupTask implements Runnable {
}
}
// Load/Unload Worlds, only after all plugins have started up.
new WorldListener(this.plugin);
// Only load this Listener if the corresponding items are enabled
if (isEnabled("ELEVATOR_PLATE", "GPS_ACTIVATION_DEVICE_SHARED", "GPS_ACTIVATION_DEVICE_PERSONAL")) {
new TeleporterListener(plugin);