1
0
mirror of https://github.com/Suiranoil/SkinRestorer.git synced 2026-01-16 04:42:12 +00:00

do not replace skin for head if on client and not in singleplayer

This commit is contained in:
2025-07-24 03:21:43 +03:00
parent 11ecf88eb2
commit 84a06898a2

View File

@@ -43,6 +43,9 @@ public abstract class SkullBlockEntityMixin {
@Unique
private static void skinrestorer$replaceSkin(Optional<GameProfile> profileOpt, CallbackInfoReturnable<CompletableFuture<Optional<GameProfile>>> cir) {
if (SkinRestorer.getMinecraftServer() == null)
return;
if (profileOpt.isEmpty())
return;