Skip to content
Permalink
Browse files

Ignore null-named heads for HeadDrops

  • Loading branch information
me4502 committed Jan 30, 2020
1 parent 48e5533 commit 6d3620bda2ee21e7d9fc60a715b0a233469e2df9
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/com/sk89q/craftbook/mechanics/headdrops/HeadDrops.java
@@ -180,7 +180,7 @@ public void onBlockBreak(BlockBreakEvent event) {
if(!skull.hasOwner())
return;
String playerName = ChatColor.stripColor(skull.getOwner());
if (ignoredNames.contains(playerName)) {
if (playerName == null || ignoredNames.contains(playerName)) {
return;
}
CraftBookPlayer player = CraftBookPlugin.inst().wrapPlayer(event.getPlayer());

0 comments on commit 6d3620b

Please sign in to comment.
You can’t perform that action at this time.