Fix stack trace in master builders when clicking on a watch.

This commit is contained in:
md_5 2016-02-17 18:39:26 +11:00
parent 50f58ba3a5
commit 3fad9c639a

View File

@ -123,7 +123,8 @@ public class MiscManager implements Listener
return; return;
// Prevent players from hub warping off clock in Master Builders // 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; return;
if (!Recharge.Instance.usable(event.getPlayer(), "Return to Hub")) if (!Recharge.Instance.usable(event.getPlayer(), "Return to Hub"))