Skip to content
This repository has been archived by the owner on Apr 12, 2022. It is now read-only.

Commit

Permalink
swap 'item:' to 'with_item:'
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed May 5, 2017
1 parent e3e88d0 commit 9e57e46
Showing 1 changed file with 5 additions and 5 deletions.
Expand Up @@ -86,16 +86,16 @@ public static boolean checkString(String inpStr, ScriptEvent.ScriptEventData dat
}

// <--[explanation]
// @Name Item Switch For Events
// @Name With Item Switch For Events
// @Group Events
// @Description
// Some events contain an "Item:" switch.
// Some events contain an "with_item:" switch.
// This is a special-case-switch with sub-options!
//
// For example, you would write "item:type:stick" to check if the item is of TYPE stick!
// For example, you would write "with_item:type:stick" to check if the item is of TYPE stick!
//
// Note that this syntax additionally allows for multiple options, as well as sub-lists for specific potential options.
// "item:type:stick&pipestone|quantity:5|flagged:best_stick_or_stone"
// "with_item:type:stick&pipestone|quantity:5|flagged:best_stick_or_stone"
//
// Options:
// type: (ItemTypeTag) checks if the item type matches.
Expand All @@ -104,7 +104,7 @@ public static boolean checkString(String inpStr, ScriptEvent.ScriptEventData dat
// -->

public static boolean checkItem(ItemTag itm, ScriptEvent.ScriptEventData data, Action<String> error) {
return checkItem(itm, data, error, "item");
return checkItem(itm, data, error, "with_item");
}

public static boolean checkItem(ItemTag itm, ScriptEvent.ScriptEventData data, Action<String> error, String tname) {
Expand Down

0 comments on commit 9e57e46

Please sign in to comment.