1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-20 05:21:21 +02:00

NPE check in PlayerInteract

This commit is contained in:
snowleo
2011-07-23 19:13:05 +02:00
parent 9bd3111fab
commit 4fa964b25e

View File

@@ -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())
{