Skip to content

Commit

Permalink
Clean up mixins
Browse files Browse the repository at this point in the history
  • Loading branch information
Pyrofab committed Jan 2, 2024
1 parent 32994fb commit 311c0dc
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 52 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
import org.spongepowered.asm.mixin.injection.Redirect;

@Mixin(PlayerManager.class)
public class PlayerManagerMixin {
public abstract class PlayerManagerMixin {
@Redirect(method = "loadPlayerData", at = @At(value = "INVOKE", target = "Lnet/minecraft/server/network/ServerPlayerEntity;getGameProfile()Lcom/mojang/authlib/GameProfile;"))
private GameProfile resolvePlayerName(ServerPlayerEntity player) {
return Impersonator.get(player).getActualProfile();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
import org.spongepowered.asm.mixin.injection.ModifyArg;

@Mixin(ServerCommonNetworkHandler.class)
public abstract class ServerPlayNetworkHandlerMixin {
public abstract class ServerCommonNetworkHandlerMixin {
@Shadow
@Final
protected MinecraftServer server;
Expand Down

This file was deleted.

3 changes: 1 addition & 2 deletions src/main/resources/mixins.impersonate.common.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,9 @@
"PlayerListS2CPacketEntryAccessor",
"PlayerListS2CPacketEntryMixin",
"PlayerManagerMixin",
"ServerCommonNetworkHandlerMixin",
"ServerPlayerEntityMixin",
"ServerPlayNetworkHandlerMixin",
"TextMixin",
"TextSerializerMixin",
"ThreadedAnvilChunkStorageAccessor",
"TranslatableTextContentMixin"
],
Expand Down

0 comments on commit 311c0dc

Please sign in to comment.