Skip to content

Commit 47cafc3

Browse files
committed
fix: profile constructor
1 parent 77af185 commit 47cafc3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

zip-nms/zip-nms-v1_21_R6/src/main/java/net/imprex/zip/nms/v1_21_R6/ZipNmsManager.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public class ZipNmsManager implements NmsManager {
6767
if (setResolvableProfileMethod != null) {
6868
setProfile = (meta, profile) -> {
6969
try {
70-
setResolvableProfileMethod.invoke(meta, new ResolvableProfile(profile));
70+
setResolvableProfileMethod.invoke(meta, ResolvableProfile.createResolved(profile));
7171
} catch (IllegalAccessException | InvocationTargetException e) {
7272
e.printStackTrace();
7373
}
@@ -193,7 +193,7 @@ public JsonObject migrateToJsonElement(byte[] binary) {
193193
public void setSkullProfile(SkullMeta meta, String texture) {
194194
try {
195195
GameProfile gameProfile = new GameProfile(UUID.randomUUID(), "");
196-
gameProfile.getProperties().put("textures", new Property("textures", texture));
196+
gameProfile.properties().put("textures", new Property("textures", texture));
197197

198198
SET_PROFILE.accept(meta, gameProfile);
199199
} catch (Exception e) {

0 commit comments

Comments
 (0)