fixed shift-right-click shortcut after paperspigot fix

This commit is contained in:
mfnalex 2019-07-16 23:24:09 +02:00
parent e6d82fc70c
commit 62908e620d

View File

@ -320,7 +320,7 @@ public class JeffChestSortListener implements Listener {
break;
case SHIFT_RIGHT:
if(plugin.getConfig().getBoolean("hotkeys.shift-right-click")) {
if(event.getCurrentItem() == null || ( event.getCurrentItem() == null && event.getCurrentItem().getType() == Material.AIR)) {
if(event.getCurrentItem() == null || ( event.getCurrentItem() != null && event.getCurrentItem().getType() == Material.AIR)) {
sort=true;
}
}