diff --git a/src/main/java/com/massivecraft/factions/zcore/fperms/gui/PermissableActionGUI.java b/src/main/java/com/massivecraft/factions/zcore/fperms/gui/PermissableActionGUI.java index a43af63c..efd8f8b1 100644 --- a/src/main/java/com/massivecraft/factions/zcore/fperms/gui/PermissableActionGUI.java +++ b/src/main/java/com/massivecraft/factions/zcore/fperms/gui/PermissableActionGUI.java @@ -114,7 +114,10 @@ public class PermissableActionGUI implements InventoryHolder, PermissionGUI { public void onClick(int slot, ClickType click) { if (specialSlots.containsKey(slot)) { if (specialSlots.get(slot) == SpecialItem.BACK) { - fme.getPlayer().openInventory(new PermissableRelationGUI(fme).getInventory()); + PermissableRelationGUI relationGUI = new PermissableRelationGUI(fme); + relationGUI.build(); + + fme.getPlayer().openInventory(relationGUI.getInventory()); } return; } diff --git a/src/main/java/com/massivecraft/factions/zcore/fperms/gui/PermissableRelationGUI.java b/src/main/java/com/massivecraft/factions/zcore/fperms/gui/PermissableRelationGUI.java index af71af04..94b7dadc 100644 --- a/src/main/java/com/massivecraft/factions/zcore/fperms/gui/PermissableRelationGUI.java +++ b/src/main/java/com/massivecraft/factions/zcore/fperms/gui/PermissableRelationGUI.java @@ -87,7 +87,10 @@ public class PermissableRelationGUI implements InventoryHolder, PermissionGUI { return; } - fme.getPlayer().openInventory(new PermissableActionGUI(fme, relationSlots.get(slot)).getInventory()); + PermissableActionGUI actionGUI = new PermissableActionGUI(fme, relationSlots.get(slot)); + actionGUI.build(); + + fme.getPlayer().openInventory(actionGUI.getInventory()); } private Permissable getPermissable(String name) {