Fixed NPE in MiscManager regarding hub clock tp fix for Master Builders
This commit is contained in:
parent
f551703d9c
commit
d33905e174
@ -123,6 +123,10 @@ 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().hasItemMeta())
|
||||||
|
return;
|
||||||
|
if (!player.getItemInHand().getItemMeta().hasDisplayName())
|
||||||
|
return;
|
||||||
if (!player.getItemInHand().getItemMeta().getDisplayName().contains("Hub"))
|
if (!player.getItemInHand().getItemMeta().getDisplayName().contains("Hub"))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user