Skip to content

Commit

Permalink
Fix (non-crashing) error trying to add duplicate func_149169_c to SPa…
Browse files Browse the repository at this point in the history
…cketCustomPayload on clients
  • Loading branch information
LunNova committed Dec 29, 2017
1 parent 77685b5 commit 8656b0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/resources/packethook.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<patchGroups>
<minecraft>
<class id="net.minecraft.network.play.server.SPacketCustomPayload">
<addMethod code="public String ^method:SPacketCustomPayload/getChannelName^() { return this.^field:SPacketCustomPayload/channel^; }"/>
<addMethod ignoreDuplicate="true" code="public String ^method:SPacketCustomPayload/getChannelName^() { return this.^field:SPacketCustomPayload/channel^; }"/>
</class>
<class id="net.minecraft.network.NettyPacketEncoder">
<replaceMethodCall method="^method:Packet/writePacketData^"
Expand Down

0 comments on commit 8656b0d

Please sign in to comment.