Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ public void onUnloadWorld(World world) {
public boolean matches(World world, String worldRegex) {
Set<String> matches = mWorldPatternMatches.get(world.getName());
if (matches == null) {
if (Bukkit.getWorld(world.getName()) == null) {
// World is unloaded; no zone can contain an entity in an unloaded world
return false;
}
MMLog.severe(
"Falling back to slow regex .matches() to test unloaded world: '" + world.getName() + "' against regex: '" + worldRegex + "'",
new IllegalStateException("WorldRegexMatcher testing against an unloaded world")
Expand Down
Loading