Fix inventory item detect syntax

This commit is contained in:
dginovker
2019-12-15 00:23:12 -05:00
parent af9627467b
commit 6abd79cb64
4 changed files with 2 additions and 2 deletions
@@ -18,7 +18,7 @@ public class LogicHandler {
switch (a.getMethod().replaceAll("-", " "))
{
case "Item is in Inventory":
return Inventory.getCount(a.getParam(0)) >= (a.getParamAsString(1).equals("") ? 0 : a.getParam(1));
return Inventory.getCount(a.getParam(0)) >= (a.getParamCount() == 1 ? 1 : a.getParam(1));
case "Inventory slots used":
return Inventory.getCount() >= a.getParam(0);
case "Item is on Ground":
+1 -1
View File
@@ -21,7 +21,7 @@ import static scriptfactory.VarsMethods.log;
* Welcome to AIO AIO - ScriptFactory. Make your own scripts!
*/
@ScriptManifest(author = "Before", name = "Script Factory 1.13", category = Category.OTHER, version = 1.13, description = "Create your own scripts!", servers = "All")
@ScriptManifest(author = "Before", name = "Script Factory 1.14", category = Category.OTHER, version = 1.14, description = "Create your own scripts!", servers = "All")
public class Core extends Script implements Paintable {
private ArrayList<Action> actions = new ArrayList<>();
Binary file not shown.