From 59e58e8592a0d8175f465aead0f1e4a6d5230a4d Mon Sep 17 00:00:00 2001 From: Florian CUNY Date: Fri, 13 Jul 2018 13:38:50 +0200 Subject: [PATCH] Fixed invalid Flag ID in ANIMAL_SPAWN's clicklistener --- .../api/flags/clicklisteners/IslandToggleClickListener.java | 1 - src/main/java/us/tastybento/bskyblock/lists/Flags.java | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/us/tastybento/bskyblock/api/flags/clicklisteners/IslandToggleClickListener.java b/src/main/java/us/tastybento/bskyblock/api/flags/clicklisteners/IslandToggleClickListener.java index 7aeb17f67..5c6f0c0cf 100644 --- a/src/main/java/us/tastybento/bskyblock/api/flags/clicklisteners/IslandToggleClickListener.java +++ b/src/main/java/us/tastybento/bskyblock/api/flags/clicklisteners/IslandToggleClickListener.java @@ -31,7 +31,6 @@ public class IslandToggleClickListener implements ClickHandler { this.id = id; } - /* (non-Javadoc) * @see us.tastybento.bskyblock.api.panels.PanelItem.ClickHandler#onClick(us.tastybento.bskyblock.api.panels.Panel, us.tastybento.bskyblock.api.user.User, org.bukkit.event.inventory.ClickType, int) */ diff --git a/src/main/java/us/tastybento/bskyblock/lists/Flags.java b/src/main/java/us/tastybento/bskyblock/lists/Flags.java index 9ec3f9b5f..dde158657 100644 --- a/src/main/java/us/tastybento/bskyblock/lists/Flags.java +++ b/src/main/java/us/tastybento/bskyblock/lists/Flags.java @@ -152,7 +152,7 @@ public class Flags { // Others public static final Flag ANIMAL_SPAWN = new FlagBuilder().id("ANIMAL_SPAWN").icon(Material.APPLE).allowedByDefault(true).type(Type.SETTING) - .listener(new MobSpawnListener()).onClick(new IslandToggleClickListener("MONSTER_SPAWN")).build(); + .listener(new MobSpawnListener()).onClick(new IslandToggleClickListener("ANIMAL_SPAWN")).build(); public static final Flag MONSTER_SPAWN = new FlagBuilder().id("MONSTER_SPAWN").icon(Material.MOB_SPAWNER).allowedByDefault(true).type(Type.SETTING) .onClick(new IslandToggleClickListener("MONSTER_SPAWN")).build(); public static final Flag FIRE_SPREAD = new FlagBuilder().id("FIRE_SPREAD").icon(Material.FIREWORK_CHARGE).allowedByDefault(true).type(Type.SETTING)