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(); } }