-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
43 additions
and
11 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
...ing/universaltweaks/bugfixes/misc/packetsize/mixin/UTCPacketCustomPayloadClientMixin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package mod.acgaming.universaltweaks.bugfixes.misc.packetsize.mixin; | ||
|
||
import mod.acgaming.universaltweaks.config.UTConfigBugfixes; | ||
import net.minecraft.network.play.client.CPacketCustomPayload; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.injection.Constant; | ||
import org.spongepowered.asm.mixin.injection.ModifyConstant; | ||
|
||
@Mixin(CPacketCustomPayload.class) | ||
public class UTCPacketCustomPayloadClientMixin | ||
{ | ||
@ModifyConstant(method = "<init>(Ljava/lang/String;Lnet/minecraft/network/PacketBuffer;)V", constant = @Constant(intValue = 32767)) | ||
public int utPacketSizeCustomPayloadInit(int constant) | ||
{ | ||
return UTConfigBugfixes.MISC.utPacketSize; | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
...ing/universaltweaks/bugfixes/misc/packetsize/mixin/UTCPacketCustomPayloadCommonMixin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package mod.acgaming.universaltweaks.bugfixes.misc.packetsize.mixin; | ||
|
||
import mod.acgaming.universaltweaks.config.UTConfigBugfixes; | ||
import net.minecraft.network.play.client.CPacketCustomPayload; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.injection.Constant; | ||
import org.spongepowered.asm.mixin.injection.ModifyConstant; | ||
|
||
@Mixin(CPacketCustomPayload.class) | ||
public class UTCPacketCustomPayloadCommonMixin | ||
{ | ||
@ModifyConstant(method = "readPacketData", constant = @Constant(intValue = 32767)) | ||
public int utPacketSizeCustomPayloadRead(int constant) | ||
{ | ||
return UTConfigBugfixes.MISC.utPacketSize; | ||
} | ||
} |
3 changes: 1 addition & 2 deletions
3
...gaming/universaltweaks/bugfixes/misc/packetsize/mixin/UTNettyCompressionDecoderMixin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
...java/mod/acgaming/universaltweaks/bugfixes/misc/packetsize/mixin/UTPacketBufferMixin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
...ze/mixin/UTCPacketCustomPayloadMixin.java → ...ze/mixin/UTSPacketCustomPayloadMixin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters