Skip to content

Commit

Permalink
Internal code stuff
Browse files Browse the repository at this point in the history
Technically not formatting!
  • Loading branch information
mcmonkey4eva committed Sep 8, 2013
1 parent d8ccd57 commit cc80dde
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main/java/net/aufdemrand/denizen/objects/dInventory.java
Expand Up @@ -408,7 +408,7 @@ public int count(ItemStack item, boolean stacks)
//
// Otherwise, count the quantities of stacks

if (stacks == true) qty++;
if (stacks) qty++;
else qty = qty + invStack.getAmount();
}
}
Expand Down Expand Up @@ -450,7 +450,7 @@ public dInventory keep(ItemStack[] items) {
// If the item array did not contain
// this inventory item, remove it
// from the inventory
if (keep == false) {
if (!keep) {

this.remove(invStack);
}
Expand Down
Expand Up @@ -127,7 +127,7 @@ public void execute(final ScriptEntry scriptEntry) throws CommandExecutionExcept
try {
yamls.get(id.toUpperCase()).save(new File(DenizenAPI.getCurrentInstance().getDataFolder(), filename));
} catch (IOException e) {
e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.
e.printStackTrace();
}
}
break;
Expand Down

0 comments on commit cc80dde

Please sign in to comment.