fix world parser default
This commit is contained in:
parent
663ef31db9
commit
6562d18dc1
1 changed files with 2 additions and 0 deletions
|
@ -25,6 +25,8 @@ public class WorldParser extends DimensionParser {
|
|||
|
||||
public WorldServer getDefault(CommandEnvironment env) {
|
||||
Dimension dim = (Dimension)super.getDefault(env);
|
||||
if(dim == null)
|
||||
return null;
|
||||
return this.loadedOnly ? env.getServer().getWorldNoLoad(dim.getDimensionId()) : env.getServer().getWorld(dim.getDimensionId());
|
||||
// if(world == null)
|
||||
// throw new ScriptException("Dimension '%s' ist nicht geladen", dim.getFormattedName(false));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue