Checks for null worlds on load.
This commit is contained in:
parent
79b568fbdf
commit
622057c906
|
@ -169,7 +169,7 @@ public class WarpSignsManager {
|
||||||
// Load into map
|
// Load into map
|
||||||
if (warps != null) {
|
if (warps != null) {
|
||||||
warps.getWarpSigns().forEach((k,v) -> {
|
warps.getWarpSigns().forEach((k,v) -> {
|
||||||
if (k != null && (k.getBlock().getType().equals(Material.SIGN) || k.getBlock().getType().equals(Material.WALL_SIGN))) {
|
if (k != null && k.getWorld() != null && (k.getBlock().getType().equals(Material.SIGN) || k.getBlock().getType().equals(Material.WALL_SIGN))) {
|
||||||
// Add to map
|
// Add to map
|
||||||
getWarpMap(k.getWorld()).put(v, k);
|
getWarpMap(k.getWorld()).put(v, k);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue