diff --git a/src/main/java/net/silentclient/client/mixin/mixins/NetHandlerPlayClientMixin.java b/src/main/java/net/silentclient/client/mixin/mixins/NetHandlerPlayClientMixin.java index 528a329..844b870 100644 --- a/src/main/java/net/silentclient/client/mixin/mixins/NetHandlerPlayClientMixin.java +++ b/src/main/java/net/silentclient/client/mixin/mixins/NetHandlerPlayClientMixin.java @@ -4,6 +4,7 @@ import net.minecraft.client.entity.EntityPlayerSP; import net.minecraft.client.gui.GuiScreen; import net.minecraft.client.multiplayer.WorldClient; import net.minecraft.client.network.NetHandlerPlayClient; +import net.minecraft.network.play.server.S01PacketJoinGame; import net.minecraft.network.play.server.S19PacketEntityStatus; import net.minecraft.network.play.server.S48PacketResourcePackSend; import net.minecraft.util.IChatComponent; @@ -32,10 +33,14 @@ public class NetHandlerPlayClientMixin { at = @At(value = "INVOKE", target = "Lnet/minecraft/client/Minecraft;displayGuiScreen(Lnet/minecraft/client/gui/GuiScreen;)V") ) private GuiScreen skipTerrainScreen(GuiScreen original) { - Players.reload(); return null; } + @Inject(method = "handleJoinGame", at = @At(value = "RETURN")) + public void resetPlayers(S01PacketJoinGame packetIn, CallbackInfo ci) { + Players.reload(); + } + //#if MC==10809 @Inject(method = "handleResourcePack", at = @At("HEAD"), cancellable = true) private void silent$resourceExploitFix(S48PacketResourcePackSend packetIn, CallbackInfo ci) {