Fixes issues with the editor

This commit is contained in:
Brianna O'Keefe 2018-05-18 13:45:51 -04:00
parent 679e4ff077
commit 7ef51515c5
2 changed files with 2 additions and 5 deletions

View File

@ -1,5 +1,6 @@
package com.songoda.ultimatekits.events;
import com.massivecraft.factions.P;
import com.songoda.arconix.plugin.Arconix;
import com.songoda.ultimatekits.Lang;
import com.songoda.ultimatekits.UltimateKits;
@ -19,7 +20,6 @@ import org.bukkit.event.Listener;
import org.bukkit.event.inventory.*;
import org.bukkit.inventory.ItemStack;
@SuppressWarnings("Duplicates")
public class InventoryListeners implements Listener {
private final UltimateKits instance;
@ -28,7 +28,7 @@ public class InventoryListeners implements Listener {
this.instance = instance;
}
@EventHandler
@EventHandler(ignoreCancelled = true)
public void onClick(InventoryClickEvent event) {
try {
Player player = (Player) event.getWhoClicked();

View File

@ -336,7 +336,4 @@ public class BlockEditor {
return blockPlayerData.computeIfAbsent(player.getUniqueId(), uuid -> new BlockEditorPlayerData());
}
public void removeFromInstance(Player player) {
blockPlayerData.remove(player);
}
}