Update to 1.21.4

This commit is contained in:
Bruno Rybársky 2024-12-05 14:17:32 +01:00
parent 6f1dc2e8b4
commit 9207d7b014
Signed by: BRNSystems
GPG Key ID: 6C9206A821C70598
2 changed files with 12 additions and 8 deletions

@ -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
servergui_version=1.8.1+1.21.4
placeholder_api=2.5.1+1.21.3

@ -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) -> {