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:
Jeremy Wood 2012-11-15 13:49:11 -05:00
parent cce1ccc967
commit 18db50ca56
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}