mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-24 18:18:29 +01:00
NPE check in PlayerInteract
This commit is contained in:
parent
dc0ca35017
commit
7aea9e71e8
@ -28,6 +28,10 @@ public class SignPlayerListener extends PlayerListener
|
||||
}
|
||||
|
||||
final Block block = event.getClickedBlock();
|
||||
if (block == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
final int mat = block.getTypeId();
|
||||
if (mat == Material.SIGN_POST.getId() || mat == Material.WALL_SIGN.getId())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user