mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-08 07:36:42 +02:00
NPE check in PlayerInteract
This commit is contained in:
@@ -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())
|
||||
{
|
||||
|
Reference in New Issue
Block a user