9
0
mirror of https://github.com/LeavesMC/Leaves.git synced 2025-12-19 14:59:32 +00:00

fix: fix extra session service

This commit is contained in:
MC_XiaoHei
2025-10-07 20:48:18 +08:00
parent e25d885bd5
commit 8d6817d12f

View File

@@ -11,6 +11,7 @@ import com.mojang.authlib.yggdrasil.ProfileResult;
import com.mojang.authlib.yggdrasil.ServicesKeySet; import com.mojang.authlib.yggdrasil.ServicesKeySet;
import com.mojang.authlib.yggdrasil.response.HasJoinedMinecraftServerResponse; import com.mojang.authlib.yggdrasil.response.HasJoinedMinecraftServerResponse;
import com.mojang.authlib.yggdrasil.response.ProfileAction; import com.mojang.authlib.yggdrasil.response.ProfileAction;
import io.papermc.paper.profile.MutablePropertyMap;
import net.minecraft.server.MinecraftServer; import net.minecraft.server.MinecraftServer;
import net.minecraft.server.level.ServerPlayer; import net.minecraft.server.level.ServerPlayer;
import net.minecraft.server.players.NameAndId; import net.minecraft.server.players.NameAndId;
@@ -80,7 +81,7 @@ public class LeavesMinecraftSessionService extends PaperMinecraftSessionService
} }
} }
final GameProfile result1 = new GameProfile(response.id(), profileName); final GameProfile result1 = new GameProfile(response.id(), profileName, new MutablePropertyMap());
if (response.properties() != null) { if (response.properties() != null) {
result1.properties().putAll(response.properties()); result1.properties().putAll(response.properties());
} }