Fixed NPE on hologram updating

Fixes #63
This commit is contained in:
Eric 2017-01-13 14:11:10 +01:00
parent 75ffa46d9d
commit f0a0d760a0

View File

@ -259,7 +259,7 @@ public class ShopUtils {
}
}
} else {
if (shop.getHologram().isVisible(player)) shop.getHologram().hidePlayer(player);
if (shop.getHologram() != null && shop.getHologram().isVisible(player)) shop.getHologram().hidePlayer(player);
}
if (distSqr <= itemDistSqr) {