Skip to content

Commit

Permalink
list.random -> interpret object type
Browse files Browse the repository at this point in the history
Yay for object recognition!
  • Loading branch information
mcmonkey4eva committed Nov 1, 2014
1 parent 075723d commit b5d3080
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/net/aufdemrand/denizen/objects/dList.java
Expand Up @@ -1238,7 +1238,7 @@ else if (res > 0)
return toReturn.getAttribute(attribute.fulfill(1));
}
else {
return new Element(this.get(CoreUtilities.getRandom().nextInt(this.size())))
return ObjectFetcher.pickObjectFor(this.get(CoreUtilities.getRandom().nextInt(this.size())))
.getAttribute(attribute.fulfill(1));
}
}
Expand Down

0 comments on commit b5d3080

Please sign in to comment.