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:
@@ -43,6 +43,9 @@ public abstract class SkullBlockEntityMixin {
|
|||||||
|
|
||||||
@Unique
|
@Unique
|
||||||
private static void skinrestorer$replaceSkin(Optional<GameProfile> profileOpt, CallbackInfoReturnable<CompletableFuture<Optional<GameProfile>>> cir) {
|
private static void skinrestorer$replaceSkin(Optional<GameProfile> profileOpt, CallbackInfoReturnable<CompletableFuture<Optional<GameProfile>>> cir) {
|
||||||
|
if (SkinRestorer.getMinecraftServer() == null)
|
||||||
|
return;
|
||||||
|
|
||||||
if (profileOpt.isEmpty())
|
if (profileOpt.isEmpty())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user