mirror of
https://github.com/PikaMug/Quests.git
synced 2024-09-26 22:22:37 +02:00
Ignore null EquipmentSlot, fixes #592
This commit is contained in:
parent
330e92ef72
commit
fe92c86584
@ -190,6 +190,9 @@ public class PlayerListener implements Listener {
|
||||
@EventHandler
|
||||
public void onPlayerInteract(PlayerInteractEvent evt) {
|
||||
EquipmentSlot e = evt.getHand(); //Get the hand of the event and set it to 'e'.
|
||||
if (e == null) {
|
||||
return;
|
||||
}
|
||||
if (e.equals(EquipmentSlot.HAND)) { //If the event is fired by HAND (main hand)
|
||||
if (plugin.checkQuester(evt.getPlayer().getUniqueId()) == false) {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user