From 9207d7b0144478945f48581714ae04ba105fd651 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Ryb=C3=A1rsky?= Date: Thu, 5 Dec 2024 14:17:32 +0100 Subject: [PATCH] Update to 1.21.4 --- gradle.properties | 14 +++++++------- .../brn/servershop/screens/BalanceScreen.java | 6 +++++- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/gradle.properties b/gradle.properties index dc3f649..40ab4f6 100644 --- a/gradle.properties +++ b/gradle.properties @@ -2,20 +2,20 @@ org.gradle.jvmargs=-Xmx1G # Fabric Properties # check these on https://modmuss50.me/fabric.html -minecraft_version=1.21.3 -yarn_mappings=1.21.3+build.2 +minecraft_version=1.21.4 +yarn_mappings=1.21.4+build.1 loader_version=0.16.9 # Mod Properties -mod_version=1.5.2 +mod_version=1.5.3 maven_group=systems.brn archives_base_name=servershop # Dependencies # check this on https://modmuss50.me/fabric.html -fabric_version=0.107.0+1.21.3 +fabric_version=0.110.5+1.21.4 # Dependencies -polymer_version=0.10.1+1.21.3 +polymer_version=0.11.0+1.21.4-rc1 server_translations_api_version=2.4.0+1.21.2-rc1 -servergui_version=1.7.2+1.21.2 -placeholder_api=2.5.0+1.21.2 \ No newline at end of file +servergui_version=1.8.1+1.21.4 +placeholder_api=2.5.1+1.21.3 \ No newline at end of file diff --git a/src/main/java/systems/brn/servershop/screens/BalanceScreen.java b/src/main/java/systems/brn/servershop/screens/BalanceScreen.java index 5e43f6f..eeb7715 100644 --- a/src/main/java/systems/brn/servershop/screens/BalanceScreen.java +++ b/src/main/java/systems/brn/servershop/screens/BalanceScreen.java @@ -62,9 +62,13 @@ public class BalanceScreen extends PagedGui implements SearchableInterface { UUID targetUUID = balanceEntry.getKey(); Double targetBalance = balanceEntry.getValue(); GameProfile targetProfile = getGameProfile(targetUUID, server); + String name = "UNKNOWN PROFILE"; + if (targetProfile != null) { + name = targetProfile.getName(); + } GuiElementBuilder elementBuilder = new GuiElementBuilder(Items.PLAYER_HEAD) .setSkullOwner(targetProfile, server) - .setName(Text.literal(targetProfile.getName())) + .setName(Text.literal(name)) .hideDefaultTooltip().noDefaults() .addLoreLine(Text.translatable("gui.servershop.balance.editor.value", targetBalance)) .setCallback((index, clickType, slotActionType) -> {