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 + "'");