Removes home locations that are null

This commit is contained in:
tastybento 2019-06-02 21:17:30 -07:00
parent 390532adbc
commit 3e3754d335

View File

@ -205,7 +205,7 @@ public class Players implements DataObject {
* @param world - world
*/
public void clearHomeLocations(World world) {
homeLocations.keySet().removeIf(l -> l == null || Util.sameWorld(l.getWorld(), world));
homeLocations.keySet().removeIf(l -> l == null || l.getWorld() == null || Util.sameWorld(l.getWorld(), world));
}
/**