From aef3b0024ab5dc817caebb7d4c1f207dc1635427 Mon Sep 17 00:00:00 2001 From: TomyLobo Date: Sat, 21 Sep 2013 18:16:36 +0200 Subject: [PATCH] Fixed the overloader --- .../com/sk89q/worldedit/expression/runtime/Functions.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/com/sk89q/worldedit/expression/runtime/Functions.java b/src/main/java/com/sk89q/worldedit/expression/runtime/Functions.java index ad790e164..3d679baab 100644 --- a/src/main/java/com/sk89q/worldedit/expression/runtime/Functions.java +++ b/src/main/java/com/sk89q/worldedit/expression/runtime/Functions.java @@ -78,6 +78,10 @@ public final class Functions { return false; } + if (this.method.getParameterTypes().length != args.length) { // TODO: optimize + return false; + } + int accum = 0; for (RValue argument : args) { accum <<= 2;