CC: Tweaked

CC: Tweaked

57M Downloads

Max websocket lower limit is improperly capped or wrongly documented.

Wojbie opened this issue ยท 1 comments

commented

Minecraft Version

1.20.x

Version

1.109.3

Details

In CC:T config it states that if you set max websocket limit to 0 it will become unlimited but value itself has lower cap set to 1 so it never can be set to 0. Either 0 is unlimited is incorrectly documented or value is incorrectly limited.

httpMaxWebsockets = builder
.comment("The number of websockets a computer can have open at one time. Set to 0 for unlimited.")
.defineInRange("max_websockets", CoreConfig.httpMaxWebsockets, 1, Integer.MAX_VALUE);

commented

Good spot, thanks!