Skip to content

Commit

Permalink
Fix onCustomPayload execution location
Browse files Browse the repository at this point in the history
  • Loading branch information
Mgazul committed Dec 2, 2023
1 parent 28e40bf commit 4e7ae91
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1966,7 +1966,6 @@
+
+ public void func_147349_a(CCustomPayloadPacket p_147349_1_) {
+ PacketThreadUtil.func_218796_a(p_147349_1_, this, this.field_147369_b.func_71121_q());
+ net.minecraftforge.fml.network.NetworkHooks.onCustomPayload(p_147349_1_, this.field_147371_a);
+ if (p_147349_1_.field_149562_a.equals(CUSTOM_REGISTER)) {
+ try {
+ String channels = p_147349_1_.field_149561_c.toString(Charsets.UTF_8);
Expand Down Expand Up @@ -2005,6 +2004,7 @@
+ this.disconnect("Invalid custom payload!");
+ }
+ }
+ net.minecraftforge.fml.network.NetworkHooks.onCustomPayload(p_147349_1_, this.field_147371_a);
+ }
+
+ public boolean isDisconnected() {
Expand Down

0 comments on commit 4e7ae91

Please sign in to comment.