mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-05-23 15:53:26 +00:00
NPE check in PlayerInteract
This commit is contained in:
parent
dc0ca35017
commit
7aea9e71e8
1 changed files with 4 additions and 0 deletions
|
@ -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 a new issue