From 6c93866122bb3176b4cb43455501190c387b0860 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Tue, 5 Nov 2019 17:26:18 +1300 Subject: [PATCH] Don't allow non-disguise parameters --- .../disguise/utilities/parser/params/ParamInfoManager.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/me/libraryaddict/disguise/utilities/parser/params/ParamInfoManager.java b/src/main/java/me/libraryaddict/disguise/utilities/parser/params/ParamInfoManager.java index ca5cd5a4..0c216da0 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/parser/params/ParamInfoManager.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/parser/params/ParamInfoManager.java @@ -86,6 +86,8 @@ public class ParamInfoManager { itel.remove(); } else if (method.getName().equals("removePotionEffect")) { itel.remove(); + } else if (!FlagWatcher.class.isAssignableFrom(method.getDeclaringClass())) { + itel.remove(); } }