mirror of
https://github.com/BentoBoxWorld/Warps.git
synced 2024-11-22 10:35:52 +01:00
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
|
||||
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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user