From ddea709c13338a804cdde7a10770a790c49c7cbd Mon Sep 17 00:00:00 2001 From: hellidox <97000871+hellidox@users.noreply.github.com> Date: Fri, 23 Aug 2024 01:51:01 -0500 Subject: [PATCH] ok it doesnt crash above max --- .../meteorclient/utils/misc/MeteorStarscript.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/meteordevelopment/meteorclient/utils/misc/MeteorStarscript.java b/src/main/java/meteordevelopment/meteorclient/utils/misc/MeteorStarscript.java index af321f5ded..2bada0a727 100644 --- a/src/main/java/meteordevelopment/meteorclient/utils/misc/MeteorStarscript.java +++ b/src/main/java/meteordevelopment/meteorclient/utils/misc/MeteorStarscript.java @@ -387,7 +387,7 @@ private static Value getItem(Starscript ss, int argCount) { if (argCount != 1) ss.error("player.get_item() requires 1 argument, got %d.", argCount); int i = (int) ss.popNumber("First argument to player.get_item() needs to be a number."); - if (i < 0 || i > 35) ss.error("First argument to player.get_item() needs to be between 0 and 35 (inclusive).", i); + if (i < 0) ss.error("First argument to player.get_item() needs to be a non-negative integer.", i); return mc.player != null ? wrap(mc.player.getInventory().getStack(i)) : Value.null_(); }