Skip to content

Commit

Permalink
Shut up if the inventory doesn't have enough items
Browse files Browse the repository at this point in the history
Take command: That's not necessarily an error.
  • Loading branch information
mcmonkey4eva committed Nov 18, 2014
1 parent 512447b commit f62939f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -69,7 +69,7 @@ public void breakDown() {
//
// @Warning This event will fire *extremely* rapidly and often!
//
// @Triggers when a new chunk is loaded
// @Triggers when a chunk is unloaded
// @Context
// <context.chunk> returns the loading chunk.
//
Expand Down
Expand Up @@ -178,7 +178,7 @@ public void execute(ScriptEntry scriptEntry) throws CommandExecutionException {
inventory.removeBook(is);
}
else if (!inventory.removeItem(item, item.getAmount()))
dB.echoError(scriptEntry.getResidingQueue(), "Inventory does not contain at least "
dB.echoDebug(scriptEntry, "Inventory does not contain at least "
+ qty.asInt() + " of " + item.getFullString() +
"... Taking as much as possible...");
}
Expand Down

0 comments on commit f62939f

Please sign in to comment.