mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2025-01-25 08:51:33 +01:00
Fixed NullPointer clicking air with flint and steel
This commit is contained in:
parent
d7c668d1c4
commit
b091c065a8
@ -31,7 +31,8 @@ public class FirePermission extends ListeningPermission {
|
||||
|
||||
Player player = event.getPlayer();
|
||||
|
||||
if (CompatibleMaterial.getMaterial(player.getTargetBlock(null, 5)).equals(CompatibleMaterial.FIRE))
|
||||
CompatibleMaterial targetMaterial = CompatibleMaterial.getMaterial(player.getTargetBlock(null, 5));
|
||||
if (targetMaterial != null && targetMaterial.equals(CompatibleMaterial.FIRE))
|
||||
cancelAndMessage(event, player, plugin, messageManager);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user