1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-01-17 13:28:30 +01:00

Null check for probably corrupted worlds

This commit is contained in:
snowleo 2011-10-04 21:33:02 +02:00
parent 9c6d49a9e2
commit 0ee6985c56

View File

@ -223,7 +223,7 @@ public class EssentialsSign
if (signblock.getType() == Material.WALL_SIGN)
{
final org.bukkit.material.Sign signMat = (org.bukkit.material.Sign)signblock.getState().getData();
if (signMat.getFacing() == blockFace && isValidSign(new BlockSign(signblock)))
if (signMat != null && signMat.getFacing() == blockFace && isValidSign(new BlockSign(signblock)))
{
return true;
}