Checks for null worlds on load.

This commit is contained in:
tastybento 2019-03-06 22:04:47 -08:00
parent 79b568fbdf
commit 622057c906
1 changed files with 1 additions and 1 deletions

View File

@ -169,7 +169,7 @@ public class WarpSignsManager {
// Load into map
if (warps != null) {
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
getWarpMap(k.getWorld()).put(v, k);
}