mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-07-13 23:24:43 +02:00
Removes home locations that are null
This commit is contained in:
parent
390532adbc
commit
3e3754d335
|
@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue
Block a user