mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-28 05:35:26 +01:00
Fix prefix/suffix priorities being ignored
This commit is contained in:
parent
c5ce655cf6
commit
ac57509a29
@ -167,11 +167,13 @@ public class VaultUser {
|
|||||||
Map.Entry<Integer, String> value = n.getPrefix();
|
Map.Entry<Integer, String> value = n.getPrefix();
|
||||||
if (value.getKey() > prefixPriority) {
|
if (value.getKey() > prefixPriority) {
|
||||||
existing.setPrefix(value.getValue());
|
existing.setPrefix(value.getValue());
|
||||||
|
prefixPriority = value.getKey();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
Map.Entry<Integer, String> value = n.getSuffix();
|
Map.Entry<Integer, String> value = n.getSuffix();
|
||||||
if (value.getKey() > suffixPriority) {
|
if (value.getKey() > suffixPriority) {
|
||||||
existing.setSuffix(value.getValue());
|
existing.setSuffix(value.getValue());
|
||||||
|
suffixPriority = value.getKey();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user