9
0
mirror of https://github.com/HibiscusMC/HMCCosmetics.git synced 2025-12-29 11:59:21 +00:00

fix: locked-item not appearing in wardrobes with unchecked cosmetics

This commit is contained in:
LoJoSho
2023-12-19 18:39:54 -06:00
parent a6133a2b45
commit 88691956ba

View File

@@ -153,7 +153,7 @@ public class TypeCosmetic extends Type {
return itemStack;
}
if (!user.canEquipCosmetic(cosmetic) && !config.node("locked-item").virtual()) {
if (!user.canEquipCosmetic(cosmetic, true) && !config.node("locked-item").virtual()) {
MessagesUtil.sendDebugMessages("GUI Locked Item");
ConfigurationNode lockedItem = config.node("locked-item");
try {