last_one_core-1.5.4
Curse Maven Snippet
What's new
1.5.4
- Fix every player on a dedicated server being kicked with
java.lang.RuntimeException: Attempted to load class com/mojang/blaze3d/vertex/PoseStack for invalid dist DEDICATED_SERVERas soon as a Confluence gun is equipped or its attribute modifiers are built. The 1.5.3 takeover readBaseGun#getDefinition().critical()throughClass#getMethod, and that call resolves every declared signature up the type's whole supertype chain instead of just the named method:BaseGunimplements GeckoLib'sGeoItem, whose method table mentions the client-onlyPoseStack, so Forge'sRuntimeDistCleanerthrew inside the reflective lookup. The existingcatch (ReflectiveOperationException)could not stop aRuntimeException, so it escapedItemAttributeModifierEvent, killed the player tick on login (PlayerStateSyncHandler#applyEquipmentAttributeModifiers) and on any Curios equipment change, and dropped the connection. The reflection is gone: a@Pseudomixin onBaseGunimplementsGunDefinitionAccess, a plain interface the item-attribute path caninstanceofagainst, and a@Shadowon the publicgetDefinition()hands back the same object, so nothing client-only is ever resolved on a dedicated server. The shadow targets the public accessor rather than the privatedefinitionfield, and if the bridge is ever missing the gun simply contributes no intrinsic critical chance instead of taking the server's players down.
This mod has no additional files