aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/dev/mayaqq/ygasi/gui
diff options
context:
space:
mode:
authorMaximusbarcz <maxim.baranek@gmail.com>2022-12-22 19:06:44 +0100
committerMaximusbarcz <maxim.baranek@gmail.com>2022-12-22 19:06:44 +0100
commitfd350ad15aa2f82b6b0afe3b13d283c45f4a7082 (patch)
treeedb092151d025de570d32969a15b02922b86596f /src/main/java/dev/mayaqq/ygasi/gui
parent3f4b8a506d46a3fc558d6941a31af1b69b4cede7 (diff)
downloadygasi-fd350ad15aa2f82b6b0afe3b13d283c45f4a7082.tar.gz
ygasi-fd350ad15aa2f82b6b0afe3b13d283c45f4a7082.tar.bz2
ygasi-fd350ad15aa2f82b6b0afe3b13d283c45f4a7082.zip
Did some more trolling
Diffstat (limited to 'src/main/java/dev/mayaqq/ygasi/gui')
-rw-r--r--src/main/java/dev/mayaqq/ygasi/gui/BranchGui.java4
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))));