diff options
Diffstat (limited to 'src/main/java/dev/mayaqq/ygasi/gui')
-rw-r--r-- | src/main/java/dev/mayaqq/ygasi/gui/BranchGui.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/dev/mayaqq/ygasi/gui/BranchGui.java b/src/main/java/dev/mayaqq/ygasi/gui/BranchGui.java index 7039eff..c7b9950 100644 --- a/src/main/java/dev/mayaqq/ygasi/gui/BranchGui.java +++ b/src/main/java/dev/mayaqq/ygasi/gui/BranchGui.java @@ -19,9 +19,9 @@ import static dev.mayaqq.ygasi.registry.StatRegistry.SKILL_POINTS; public class BranchGui { public static void gui(ServerPlayerEntity player) { - UUID playerUUID = player.getUuid(); - PlayerDataRegistry.load(playerUUID); try { + UUID playerUUID = player.getUuid(); + PlayerDataRegistry.load(playerUUID); SimpleGui gui = new SimpleGui(ScreenHandlerType.GENERIC_9X3, player, false) {}; gui.setTitle(Text.of("ยง3Skill Points: " + player.getStatHandler().getStat(Stats.CUSTOM.getOrCreateStat(SKILL_POINTS)))); |