mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2026-11-22 14:19:47 +00:00
Cleanup handling of empty permissions when migrating data (closes #387)
This commit is contained in:
8 files changed
+46
-25
No files matched your search
@@ -174,10 +174,10 @@ public class MigrationBungeePerms extends SubCommand<Object> {
|
||||
String prefix = entity.getPrefix();
|
||||
String suffix = entity.getSuffix();
|
||||
|
||||
if (prefix != null && !prefix.equals("")) {
|
||||
if (prefix != null && !prefix.isEmpty()) {
|
||||
holder.setPermission(NodeFactory.makePrefixNode(weight, prefix).build());
|
||||
}
|
||||
if (suffix != null && !suffix.equals("")) {
|
||||
if (suffix != null && !suffix.isEmpty()) {
|
||||
holder.setPermission(NodeFactory.makeSuffixNode(weight, suffix).build());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user