mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-07 23:27:08 +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();
|
final Block block = event.getClickedBlock();
|
||||||
|
if (block == null)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
final int mat = block.getTypeId();
|
final int mat = block.getTypeId();
|
||||||
if (mat == Material.SIGN_POST.getId() || mat == Material.WALL_SIGN.getId())
|
if (mat == Material.SIGN_POST.getId() || mat == Material.WALL_SIGN.getId())
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user