mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2024-11-05 18:29:34 +01:00
MVWorld now throws IllegalStateException when it cannot obtain a world reference. This should help pinpoint the source of sometimes cryptic exceptions elsewhere.
This commit is contained in:
parent
cce1ccc967
commit
18db50ca56
@ -487,7 +487,7 @@ public class MVWorld implements MultiverseWorld {
|
||||
public World getCBWorld() {
|
||||
final World world = plugin.getServer().getWorld(worldUID);
|
||||
if (world == null) {
|
||||
Logging.severe("Lost reference to bukkit world '%s'", name);
|
||||
throw new IllegalStateException("Lost reference to bukkit world '" + name + "'");
|
||||
}
|
||||
return world;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user