mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2024-11-10 17:07:16 +00:00
Fix #638 for real
This commit is contained in:
parent
0ce85946a0
commit
8644aaacd1
1 changed files with 4 additions and 0 deletions
|
@ -90,6 +90,10 @@ public class DisguiseParser {
|
||||||
continue;
|
continue;
|
||||||
} else if (setMethod.getName().equals("setTarget") && setMethod.getParam() != int.class) {
|
} else if (setMethod.getName().equals("setTarget") && setMethod.getParam() != int.class) {
|
||||||
continue;
|
continue;
|
||||||
|
} else if ((setMethod.getName().equals("setCustomName") || setMethod.getName().equals("setCustomNameVisible")) &&
|
||||||
|
disguise.isPlayerDisguise()) {
|
||||||
|
// Player Disguise overrides the behavior of custom name, so we definitely don't want it judged on a global scale
|
||||||
|
continue;
|
||||||
} else if (setMethod.getName().equals("setItemInMainHand") && setMethod.getParam() == Material.class) {
|
} else if (setMethod.getName().equals("setItemInMainHand") && setMethod.getParam() == Material.class) {
|
||||||
continue;
|
continue;
|
||||||
} else if (setMethod.getName().matches("setArmor") && setMethod.getParam() == ItemStack[].class) {
|
} else if (setMethod.getName().matches("setArmor") && setMethod.getParam() == ItemStack[].class) {
|
||||||
|
|
Loading…
Reference in a new issue