Ради вашего удобства наш сайт использует cookies! Узнать больше! Мы используем cookies

Authentic Z - Duplicate Registration Fix

Authentic Z - Duplicate Registration Fix Fixes the duplicate body location registration crash that prevents clients from joining servers when both [b]Authentic Z - Current[/b] and [b]Authentic Z - Backpacks+[/b] are enabled. [hr] Problem Both mods register the same body locations: [list] [*] AZ:TorsoRigPlus2 [*] AZ:TorsoExtraPlus1 [/list] When a client connects to a server, [b]Core.ResetLua[/b] runs mod registries again. The second registration throws: java.lang.IllegalArgumentException: Tried to register duplicate object: az:torsorigplus2 in: item_body_location This can break server connections or crash mod initialization. [hr] Fix Wraps [b]ItemBodyLocation.register[/b] in pcall so duplicate registrations are silently ignored. [list] [*] Both mods continue to work normally [*] No body location functionality is lost (the first registration is kept) [*] Only "duplicate" errors are suppressed; other errors are still logged [/list] [hr] Requirements [list] [*] Authentic Z - Current [*] Authentic Z - Backpacks+ [/list] [hr] Developed by [b]$J[/b] Workshop ID: 3712571282 Mod ID: AuthenticZ_Fix