Skip to content

Commit

Permalink
Tiny fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcernat committed Jul 31, 2013
1 parent 1bf2ffb commit 80855b9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/net/aufdemrand/denizen/objects/dEntity.java
Expand Up @@ -580,7 +580,7 @@ public void setSubtype (String entityName, String typeName, String method, Strin
Class<?> typeClass = Class.forName(typeName);
Object[] types = typeClass.getEnumConstants();

if (value.matches("RANDOM")) {
if (value.equalsIgnoreCase("RANDOM")) {

entityClass.getMethod(method, typeClass).invoke(entity, types[Utilities.getRandom().nextInt(types.length)]);
}
Expand Down
Expand Up @@ -985,7 +985,9 @@ public String call() {
return;
if (determination.toUpperCase().startsWith("CANCELLED"))
event.setCancelled(true);
else event.setMessage(determination);
else if (determination.equals("none") == false) {
event.setMessage(determination);
}
}

@EventHandler
Expand Down

0 comments on commit 80855b9

Please sign in to comment.