mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2024-09-12 13:19:33 +00: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();
|
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())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue