diff --git a/src/main/java/me/libraryaddict/disguise/utilities/parser/DisguiseParser.java b/src/main/java/me/libraryaddict/disguise/utilities/parser/DisguiseParser.java index 30dad9c6..d7281f73 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/parser/DisguiseParser.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/parser/DisguiseParser.java @@ -138,7 +138,11 @@ public class DisguiseParser { stringBuilder.append(" ").append(DisguiseUtilities.quote(((PlayerDisguise) disguise).getName())); } - for (Method m : ParamInfoManager.getDisguiseWatcherMethods(disguise.getType().getWatcherClass())) { + Method[] methods = ParamInfoManager.getDisguiseWatcherMethods(disguise.getType().getWatcherClass()); + + for (int i = methods.length - 1; i >= 0; i--) { + Method m = methods[i]; + // Special handling for this method if (m.getName().equals("addPotionEffect")) { PotionEffectType[] types = (PotionEffectType[]) m.getDeclaringClass().getMethod("getPotionEffects")