mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2025-02-22 14:41:48 +01:00
fixed NPE
This commit is contained in:
parent
793bdac2ee
commit
126b286283
@ -48,7 +48,7 @@ public class CustomSoundListener implements Listener {
|
||||
|
||||
@EventHandler
|
||||
public void d(PlayerInteractEvent event) {
|
||||
if(event.getHand().equals(EquipmentSlot.OFF_HAND) || !event.hasItem()) return;
|
||||
if(event.getHand() == EquipmentSlot.OFF_HAND || !event.hasItem()) return;
|
||||
|
||||
if(event.hasBlock())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user