Skip to content

Commit

Permalink
Remove unneeded debug output
Browse files Browse the repository at this point in the history
@Morphan1 forgot to remove this, it seems
  • Loading branch information
mcmonkey4eva committed Dec 23, 2013
1 parent e7b0e08 commit 80cd5d2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
Expand Up @@ -39,7 +39,7 @@ public void parseArgs(ScriptEntry scriptEntry) throws InvalidArgumentsException

else if (arg.matchesPrefix("id")) {
scriptEntry.addObject("pose_id", arg.getValue());
}
}

else if (arg.matches("player")) {
scriptEntry.addObject("target", TargetType.PLAYER);
Expand Down
Expand Up @@ -41,7 +41,7 @@ public ItemScriptHelper() {
// EVENT HANDLER
/////////////////

public static String doEvents(String scriptName,
public static String doEvents(String scriptName,
List<String> eventNames, dNPC npc, Player player, Map<String, Object> context) {

String determination = "none";
Expand Down
Expand Up @@ -1033,7 +1033,7 @@ public void timeEvent() {
}

public void playerEquipsArmorEvent(final Player player, final ItemStack item, final int replaceSlot) {

// Run this as a not-so-delayed Runnable...
// This is to force Bukkit to see any newly equipped armor
new BukkitRunnable() {
Expand All @@ -1042,12 +1042,9 @@ public void run() {
dItem armor = new dItem(item);
ItemStack[] armor_contents = player.getInventory().getArmorContents();

dB.log("equipped? lets get the type");
int type = 3-((item.getTypeId()-298)%4);
dB.log("type:" + type);
if (armor.comparesTo(armor_contents[type]) == -1) {
for (ItemStack item : player.getInventory().getArmorContents()) {
dB.log("Item: " + item.getType().name());
}
return;
}
Expand Down

0 comments on commit 80cd5d2

Please sign in to comment.