From 0d45d636b886c15fa107e3b9dd534a32e8b2f2bc Mon Sep 17 00:00:00 2001 From: bigguy345 Date: Sun, 4 Jan 2026 19:41:28 +0200 Subject: [PATCH] Used correct enum class name --- .../gui/util/script/interpreter/method/MethodCallInfo.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/noppes/npcs/client/gui/util/script/interpreter/method/MethodCallInfo.java b/src/main/java/noppes/npcs/client/gui/util/script/interpreter/method/MethodCallInfo.java index 247c8b584..86ca3b446 100644 --- a/src/main/java/noppes/npcs/client/gui/util/script/interpreter/method/MethodCallInfo.java +++ b/src/main/java/noppes/npcs/client/gui/util/script/interpreter/method/MethodCallInfo.java @@ -311,7 +311,7 @@ public class MethodCallInfo { // For constructors, check if the type has any constructors at all if (receiverType != null && receiverType.hasConstructors()) { setError(ErrorType.WRONG_ARG_COUNT, - "No constructor in '" + methodName + "' matches " + arguments.size() + " argument(s)"); + "No constructor in '" + receiverType.getSimpleName() + "' matches " + arguments.size() + " argument(s)"); } else { setError(ErrorType.UNRESOLVED_METHOD, "Cannot resolve constructor for '" + methodName + "'");