diff --git a/src/main/java/club/mcams/carpet/mixin/rule/fakePlayerUseOfflinePlayerUuid/Carpet_EntityPlayerMPFakeMixin.java b/src/main/java/club/mcams/carpet/mixin/rule/fakePlayerUseOfflinePlayerUuid/Carpet_EntityPlayerMPFakeMixin.java index ee395141..1a65d225 100644 --- a/src/main/java/club/mcams/carpet/mixin/rule/fakePlayerUseOfflinePlayerUuid/Carpet_EntityPlayerMPFakeMixin.java +++ b/src/main/java/club/mcams/carpet/mixin/rule/fakePlayerUseOfflinePlayerUuid/Carpet_EntityPlayerMPFakeMixin.java @@ -26,6 +26,7 @@ import com.llamalad7.mixinextras.injector.wrapoperation.Operation; import com.llamalad7.mixinextras.injector.wrapoperation.WrapOperation; + import com.mojang.authlib.GameProfile; //#if MC>=11900 @@ -49,7 +50,7 @@ public abstract class Carpet_EntityPlayerMPFakeMixin { target = "Lnet/minecraft/util/UserCache;findByName(Ljava/lang/String;)Ljava/util/Optional;" ) ) - private static Optional useOfflinePlayerUuid(UserCache userCache, String playerName, Operation original) { + private static Optional useOfflinePlayerUUID(UserCache userCache, String playerName, Operation> original) { return AmsServerSettings.fakePlayerUseOfflinePlayerUUID ? //#if MC>=11900 @@ -57,6 +58,6 @@ private static Optional useOfflinePlayerUuid(UserCache userCache, S //#else Optional.of(new GameProfile(PlayerEntity.getOfflinePlayerUuid(playerName), playerName)) : //#endif - Optional.of(original.call(userCache, playerName)); + original.call(userCache, playerName); } } diff --git a/src/main/java/club/mcams/carpet/mixin/rule/fakePlayerUseOfflinePlayerUuid/Carpet_PlayerCommandMixin.java b/src/main/java/club/mcams/carpet/mixin/rule/fakePlayerUseOfflinePlayerUuid/Carpet_PlayerCommandMixin.java index 336a86de..f04906bd 100644 --- a/src/main/java/club/mcams/carpet/mixin/rule/fakePlayerUseOfflinePlayerUuid/Carpet_PlayerCommandMixin.java +++ b/src/main/java/club/mcams/carpet/mixin/rule/fakePlayerUseOfflinePlayerUuid/Carpet_PlayerCommandMixin.java @@ -26,6 +26,7 @@ import com.llamalad7.mixinextras.injector.wrapoperation.Operation; import com.llamalad7.mixinextras.injector.wrapoperation.WrapOperation; + import com.mojang.authlib.GameProfile; //#if MC>=11900 @@ -49,7 +50,7 @@ public abstract class Carpet_PlayerCommandMixin { target = "Lnet/minecraft/util/UserCache;findByName(Ljava/lang/String;)Ljava/util/Optional;" ) ) - private static Optional useOfflinePlayerUuid(UserCache userCache, String playerName, Operation> original) { + private static Optional useOfflinePlayerUUID(UserCache userCache, String playerName, Operation> original) { return AmsServerSettings.fakePlayerUseOfflinePlayerUUID ? //#if MC>=11900