From 31637095461bd1f01a6a4eb68579430cf0336c76 Mon Sep 17 00:00:00 2001 From: ChomeNS <95471003+ChomeNS@users.noreply.github.com> Date: Mon, 8 May 2023 08:31:47 +0700 Subject: [PATCH] fix --- .../mixin/ClientPlayNetworkHandlerMixin.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main/java/land/chipmunk/chipmunkmod/mixin/ClientPlayNetworkHandlerMixin.java b/src/main/java/land/chipmunk/chipmunkmod/mixin/ClientPlayNetworkHandlerMixin.java index 24c5ba4..fd0c24f 100644 --- a/src/main/java/land/chipmunk/chipmunkmod/mixin/ClientPlayNetworkHandlerMixin.java +++ b/src/main/java/land/chipmunk/chipmunkmod/mixin/ClientPlayNetworkHandlerMixin.java @@ -1,5 +1,8 @@ package land.chipmunk.chipmunkmod.mixin; +import land.chipmunk.chipmunkmod.modules.Players; +import land.chipmunk.chipmunkmod.modules.RainbowName; +import land.chipmunk.chipmunkmod.modules.SongPlayer; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.Shadow; import org.spongepowered.asm.mixin.injection.At; @@ -25,5 +28,12 @@ public class ClientPlayNetworkHandlerMixin { CommandManager.INSTANCE = new CommandManager(ChipmunkMod.CONFIG.commands.prefix, commandRegistryAccess); SelfCare.INSTANCE.init(); + SongPlayer.INSTANCE.coreReady(); + RainbowName.INSTANCE.init(); + } + + @Inject(method = "onGameJoin", at = @At("HEAD")) + private void onGameJoiHead (GameJoinS2CPacket packet, CallbackInfo ci) { + Players.INSTANCE.init(); } }