Skip to content

Commit

Permalink
Throw less errors in the time command
Browse files Browse the repository at this point in the history
Who names their world 'world'?
  • Loading branch information
mcmonkey4eva committed Oct 19, 2014
1 parent 97c75bb commit 30df8ca
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -55,8 +55,10 @@ else if (!scriptEntry.hasObject("world")

scriptEntry.defaultObject("world",
scriptEntry.hasNPC() ? new dWorld(scriptEntry.getNPC().getWorld()) : null,
scriptEntry.hasPlayer() ? new dWorld(scriptEntry.getPlayer().getWorld()) : null,
dWorld.valueOf("world"));
scriptEntry.hasPlayer() ? new dWorld(scriptEntry.getPlayer().getWorld()) : null);

if (!scriptEntry.hasObject("world"))
throw new InvalidArgumentsException("Must specify a valid world!");
}

@Override
Expand Down

0 comments on commit 30df8ca

Please sign in to comment.