From 4731ad8061885485b9203c5ab4c4fa26c1bf23dd Mon Sep 17 00:00:00 2001 From: Luck Date: Sat, 6 May 2017 21:06:22 +0100 Subject: [PATCH] Fix migrating false zPerms nodes --- .../luckperms/bukkit/migration/MigrationZPermissions.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bukkit/src/main/java/me/lucko/luckperms/bukkit/migration/MigrationZPermissions.java b/bukkit/src/main/java/me/lucko/luckperms/bukkit/migration/MigrationZPermissions.java index bb3304b3..9cb2c597 100644 --- a/bukkit/src/main/java/me/lucko/luckperms/bukkit/migration/MigrationZPermissions.java +++ b/bukkit/src/main/java/me/lucko/luckperms/bukkit/migration/MigrationZPermissions.java @@ -150,9 +150,9 @@ public class MigrationZPermissions extends SubCommand { private void migrateEntity(PermissionHolder holder, PermissionEntity entity, List memberships) { for (Entry e : entity.getPermissions()) { if (e.getWorld() != null && !e.getWorld().getName().equals("")) { - holder.setPermission(MigrationUtils.parseNode(e.getPermission(), true).setWorld(e.getWorld().getName()).build()); + holder.setPermission(NodeFactory.newBuilder(e.getPermission()).setValue(e.isValue()).setWorld(e.getWorld().getName()).build()); } else { - holder.setPermission(MigrationUtils.parseNode(e.getPermission(), true).build()); + holder.setPermission(NodeFactory.newBuilder(e.getPermission()).setValue(e.isValue()).build()); } }