Skip to content

Commit

Permalink
Update to 1.20.2 (#11)
Browse files Browse the repository at this point in the history
Co-authored-by: Potatoboy9999 <[email protected]>
  • Loading branch information
Wesley1808 and PotatoPresident authored Oct 9, 2023
1 parent eb49aca commit 1b4bc67
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 9 deletions.
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ dependencies {
// Fabric API. This is technically optional, but you probably want it anyway.
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"

modImplementation include("me.lucko:fabric-permissions-api:0.1-SNAPSHOT")
modImplementation include("eu.pb4:sgui:1.2.2+1.20")
modImplementation include("xyz.nucleoid:server-translations-api:2.0.0-beta.2+1.19.4-pre2")
modImplementation include("me.lucko:fabric-permissions-api:0.2-SNAPSHOT")
modImplementation include("eu.pb4:sgui:1.3.0+1.20.2")
modImplementation include("xyz.nucleoid:server-translations-api:2.1.0+1.20.2-rc2")
modImplementation include("eu.pb4:common-economy-api:1.1.1")
}

Expand Down
10 changes: 5 additions & 5 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
org.gradle.jvmargs=-Xmx1G
# Fabric Properties
# check these on https://fabricmc.net/develop/
minecraft_version=1.20
yarn_mappings=1.20+build.1
loader_version=0.14.21
minecraft_version=1.20.2
yarn_mappings=1.20.2+build.1
loader_version=0.14.22
# Mod Properties
mod_version=1.1.3
mod_version=1.1.4
maven_group=us.potatoboy
archives_base_name=headindex
# Dependencies
# check this on https://fabricmc.net/develop/
fabric_version=0.83.0+1.20
fabric_version=0.89.1+1.20.2
9 changes: 8 additions & 1 deletion src/main/java/us/potatoboy/headindex/gui/HeadGui.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import com.mojang.authlib.GameProfile;
import com.mojang.authlib.minecraft.MinecraftProfileTexture;
import com.mojang.authlib.minecraft.MinecraftSessionService;
import com.mojang.authlib.yggdrasil.ProfileResult;
import eu.pb4.sgui.api.elements.GuiElementBuilder;
import eu.pb4.sgui.api.gui.AnvilInputGui;
import eu.pb4.sgui.api.gui.SimpleGui;
Expand Down Expand Up @@ -153,7 +154,13 @@ public void onTick() {
return;
}

GameProfile profile = sessionService.fillProfileProperties(possibleProfile.get(), false);
ProfileResult profileResult = sessionService.fetchProfile(possibleProfile.get().getId(), false);
if (profileResult == null) {
outputStack.removeSubNbt("SkullOwner");
return;
}

GameProfile profile = profileResult.profile();
Map<MinecraftProfileTexture.Type, MinecraftProfileTexture> textures = sessionService.getTextures(profile, false);

if (textures.isEmpty()) {
Expand Down

0 comments on commit 1b4bc67

Please sign in to comment.