Packet Fixer

Packet Fixer

35M Downloads

[1.20.1 forge] connection timed out mixins

shuen4 opened this issue ยท 0 comments

commented

version 1.20.1 (forge 47.4.10)
some mixins are not working properly
the game use 1.19.4 mixins, code reference below will use same version


this should be longValue = 15000L

@ModifyConstant(method = "initChannel", constant = @Constant(intValue = 30))
private static int packetfixer$newTimeout(int value) {
return Config.getTimeout();
}

need rework because
new ReadTimeoutHandler(30) is replaced by forge with new ReadTimeoutHandler(READ_TIMEOUT) (private static final int READ_TIMEOUT = Integer.parseInt(System.getProperty("forge.readTimeout", "30"));)

and for reference, this is my mod's patcher coremod.js

created an issue instead of a PR because I could not build it (for testing)