Tags
Creators
Details
Licensed MIT
Published 3 years ago
Updated 2 weeks ago
All versions
0.1.2+1.18.2
Release
ForgeClientResetPacket 0.1.2 (1.18.2)2 weeks ago 11
Compatibility
Minecraft: Java Edition
1.18.2
Platform
Forge
Supported environments
Client-side
Changes
ForgeClientResetPacket 0.1.2 – Forge 1.18.2
Changes since 0.1.1:
Oculus shaders workaround (#3, possibly #12)
- Oculus shaders are switched off on the render thread just before the client reset, and turned back on about 2 seconds (40 ticks) after you land on the new server. This works around the "Failed to clear, closing connection" kick when switching servers with shaders on.
- If the switch fails, shaders come back on at the title, multiplayer or disconnected screen.
- Shaders are only turned back on if they're still off the way the mod left them. If you changed the shader setting during the switch, your choice is kept.
- A shutdown hook restores your Oculus config if the game closes mid-switch.
- The restore always runs on the render thread, and a failed restore is retried (up to 3 times) instead of silently leaving shaders off.
- Soft dependency through the public Iris/Oculus API only (Oculus 1.2.5–1.6.4 for 1.18.2). Nothing changes when Oculus isn't installed.
- Toasts appear when shaders are paused, restored, or when restore fails.
Fixes
- The negotiating screen now uses the translated
connect.negotiatingstring (the previous build used a 1.19.2-only type and could not compile). - The server resource pack is kept across the reset.
- Leftover Forge packet filters (
forge:forge_fixes,forge:vanilla_filter) are removed after clearing, and already-present filters are skipped on re-injection, so the next handshake doesn't fail. - If the connection drops mid-reset (e.g. mismatched mods), you get the disconnect reason instead of hanging on "Negotiating...".
- The
isNecessaryinvoker on Forge's packet filter is markedremap = false.
Packaging
- mods.toml version comes from the build; Minecraft
[1.18.2,1.19), Forge[40,41). - Project links point to FoxyCraftNetwork.
pack.mcmetauses pack_format 8 (1.18.2 resource format).- English and Chinese (zh_cn) translations for player-facing text.
Client-side only. Minecraft 1.18.2 only (not 1.18 or 1.18.1). PR: https://github.com/FoxyCraftNetwork/Forge-Client-Reset-Packet/pull/35
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:y2PnCYl0:1lVsa2Qp"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:y2PnCYl0:1lVsa2Qp"
}

