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:
@@ -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());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user