
You are viewing a potentially older version of this package. View Latest Version
LegacyZRoutedRpcCompat
Valheim 1.0 binary compatibility shim for legacy mods that reference ZRoutedRpc.Everybody as a static field.AWL Legacy ZRoutedRpc Compatibility
Compatibility shim for Valheim 1.0 mods that were compiled when ZRoutedRpc.Everybody had static field storage.
Valheim 1.0 exposes ZRoutedRpc.Everybody as a const long with value 0. Older compiled mods can still contain ldsfld ZRoutedRpc.Everybody, which causes a MissingFieldException when that code executes.
This package restores binary compatibility at preload time by giving the existing field static storage while preserving its value of 0. It does not modify gameplay behavior.
Created for AWL's Valheim 1.0 migration after the issue was reproduced in legacy PieceManager and ServerSync code.

