mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2025-02-12 12:00:59 +00:00
Reverse order of disguise parsing methods
This commit is contained in:
parent
929f705d0e
commit
e696ee3f4f
1 changed files with 5 additions and 1 deletions
|
@ -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 a new issue