Fixed NullPointerException related to the player item event.

This commit is contained in:
sk89q 2011-01-16 23:15:30 -08:00
parent c96d534c26
commit a942fd08f5

View File

@ -131,7 +131,7 @@ public void onPlayerItem(PlayerItemEvent event) {
}
}
if (plugin.blacklist != null) {
if (block != null && plugin.blacklist != null) {
if (!plugin.blacklist.check(
new ItemUseBlacklistEvent(plugin.wrapPlayer(player), toVector(block),
block.getTypeId()), false, false)) {