mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-11-06 11:00:43 +01:00
Null check for probably corrupted worlds
This commit is contained in:
parent
9718e654ac
commit
65a78a6ea9
@ -223,7 +223,7 @@ public class EssentialsSign
|
|||||||
if (signblock.getType() == Material.WALL_SIGN)
|
if (signblock.getType() == Material.WALL_SIGN)
|
||||||
{
|
{
|
||||||
final org.bukkit.material.Sign signMat = (org.bukkit.material.Sign)signblock.getState().getData();
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user