Skip to content

Commit

Permalink
Make dWorld error a bit more gently
Browse files Browse the repository at this point in the history
Not perfect (perfect would be checking tag.hasAlternative) but this
works.
  • Loading branch information
mcmonkey4eva committed Feb 11, 2015
1 parent 8262668 commit 930b241
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/net/aufdemrand/denizen/objects/dWorld.java
Expand Up @@ -60,7 +60,7 @@ public static dWorld valueOf(String string) {

@Fetchable("w")
public static dWorld valueOf(String string, TagContext context) {
return valueOf(string, true);
return valueOf(string, context == null || context.debug);
}

public static dWorld valueOf(String string, boolean announce) {
Expand Down

0 comments on commit 930b241

Please sign in to comment.