Remove debug on swing

This commit is contained in:
nossr50 2020-02-10 13:18:42 -08:00
parent b34f0d62d6
commit 63de093ebb

View File

@ -901,17 +901,17 @@ public class PlayerListener implements Listener {
} }
} }
@EventHandler(priority = EventPriority.LOWEST) // @EventHandler(priority = EventPriority.LOWEST)
public void onDebugPlayerInteract(PlayerInteractEvent event) { // public void onDebugPlayerInteract(PlayerInteractEvent event) {
if(pluginRef.getUserManager().getPlayer(event.getPlayer()) != null) { // if(pluginRef.getUserManager().getPlayer(event.getPlayer()) != null) {
McMMOPlayer mcMMOPlayer = pluginRef.getUserManager().getPlayer(event.getPlayer()); // McMMOPlayer mcMMOPlayer = pluginRef.getUserManager().getPlayer(event.getPlayer());
if(mcMMOPlayer.isDebugMode()) { // if(mcMMOPlayer.isDebugMode()) {
switch(event.getAction()) { // switch(event.getAction()) {
case LEFT_CLICK_AIR: // case LEFT_CLICK_AIR:
case LEFT_CLICK_BLOCK: // case LEFT_CLICK_BLOCK:
pluginRef.getNbtManager().debugNBTInMainHandItem(event.getPlayer()); // pluginRef.getNbtManager().debugNBTInMainHandItem(event.getPlayer());
} // }
} // }
} // }
} // }
} }