Fix stack trace in master builders when clicking on a watch.
This commit is contained in:
parent
50f58ba3a5
commit
3fad9c639a
@ -123,7 +123,8 @@ public class MiscManager implements Listener
|
||||
return;
|
||||
|
||||
// Prevent players from hub warping off clock in Master Builders
|
||||
if (!player.getItemInHand().getItemMeta().getDisplayName().contains("Hub"))
|
||||
String displayName = player.getItemInHand().getItemMeta().getDisplayName();
|
||||
if (displayName == null || !displayName.contains("Hub"))
|
||||
return;
|
||||
|
||||
if (!Recharge.Instance.usable(event.getPlayer(), "Return to Hub"))
|
||||
|
Loading…
Reference in New Issue
Block a user