mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-11-24 03:25:24 +01:00
Fixed NullPointerException related to the player item event.
This commit is contained in:
parent
c96d534c26
commit
a942fd08f5
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user