mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-01 04:10:54 +02:00
Null check for probably corrupted worlds
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user