Reverse order of disguise parsing methods
This commit is contained in:
parent
929f705d0e
commit
e696ee3f4f
@ -138,7 +138,11 @@ public class DisguiseParser {
|
|||||||
stringBuilder.append(" ").append(DisguiseUtilities.quote(((PlayerDisguise) disguise).getName()));
|
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
|
// Special handling for this method
|
||||||
if (m.getName().equals("addPotionEffect")) {
|
if (m.getName().equals("addPotionEffect")) {
|
||||||
PotionEffectType[] types = (PotionEffectType[]) m.getDeclaringClass().getMethod("getPotionEffects")
|
PotionEffectType[] types = (PotionEffectType[]) m.getDeclaringClass().getMethod("getPotionEffects")
|
||||||
|
Loading…
Reference in New Issue
Block a user