Skip to content
This repository has been archived by the owner on Sep 7, 2024. It is now read-only.

Commit

Permalink
第一次预览
Browse files Browse the repository at this point in the history
  • Loading branch information
wohaopa committed Feb 8, 2023
1 parent 04f3810 commit 81dbece
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ public abstract class NetHandlerPlayClientMixin {

@Inject(method = "handleSpawnPlayer", at = @At("HEAD"), cancellable = true)
public void inject(S0CPacketSpawnPlayer p_147237_1_, CallbackInfo ci) {
if (((NetHandlerPlayClient) (Object) this).gameController.theWorld == null
|| p_147237_1_.func_148948_e() == null) {
if (((NetHandlerPlayClient) (Object) this).gameController.theWorld == null) {
ci.cancel();
System.out.println("Wrong packet: " + p_147237_1_);
}
Expand Down

0 comments on commit 81dbece

Please sign in to comment.