Skip to content

Commit

Permalink
Mistake in the formatting thing
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Aug 22, 2013
1 parent 58e9a1e commit 9468aa4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ else if (aH.matchesItem(arg) || aH.matchesItem("item:" + arg)) {
@Override
public void execute(ScriptEntry scriptEntry) throws CommandExecutionException {

boolean npc = (Boolean) scriptEntry.getObject("npc");
Boolean npc = (Boolean) scriptEntry.getObject("npc");
TakeType type = (TakeType) scriptEntry.getObject("takeType");
Double quantity = (Double) scriptEntry.getObject("quantity");
dItem item = (dItem) scriptEntry.getObject("item");
Expand All @@ -91,7 +91,7 @@ public void execute(ScriptEntry scriptEntry) throws CommandExecutionException {

case INVENTORY:

if (npc)
if (npc == true)
scriptEntry.getNPC().getEntity().getEquipment().clear();
else // Player
scriptEntry.getPlayer().getPlayerEntity().getInventory().clear();
Expand Down

0 comments on commit 9468aa4

Please sign in to comment.