mirror of
https://github.com/Auxilor/EcoArmor.git
synced 2025-12-27 19:09:13 +00:00
Stopped upgrades from working in /gmc due to dupe
This commit is contained in:
@@ -6,6 +6,7 @@ import com.willfp.eco.core.PluginDependent;
|
||||
import com.willfp.ecoarmor.sets.ArmorSet;
|
||||
import com.willfp.ecoarmor.sets.ArmorSets;
|
||||
import com.willfp.ecoarmor.sets.util.ArmorUtils;
|
||||
import org.bukkit.GameMode;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.Listener;
|
||||
@@ -32,6 +33,10 @@ public class AdvancementShardListener extends PluginDependent implements Listene
|
||||
*/
|
||||
@EventHandler
|
||||
public void onDrag(@NotNull final InventoryClickEvent event) {
|
||||
if (event.getWhoClicked().getGameMode() == GameMode.CREATIVE) {
|
||||
return;
|
||||
}
|
||||
|
||||
ItemStack current = event.getCurrentItem();
|
||||
ItemStack cursor = event.getCursor();
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@ import com.willfp.eco.core.EcoPlugin;
|
||||
import com.willfp.eco.core.PluginDependent;
|
||||
import com.willfp.ecoarmor.sets.util.ArmorUtils;
|
||||
import com.willfp.ecoarmor.upgrades.Tier;
|
||||
import org.bukkit.GameMode;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.Listener;
|
||||
@@ -31,6 +32,10 @@ public class CrystalListener extends PluginDependent implements Listener {
|
||||
*/
|
||||
@EventHandler
|
||||
public void onDrag(@NotNull final InventoryClickEvent event) {
|
||||
if (event.getWhoClicked().getGameMode() == GameMode.CREATIVE) {
|
||||
return;
|
||||
}
|
||||
|
||||
ItemStack current = event.getCurrentItem();
|
||||
ItemStack cursor = event.getCursor();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user