rwmt / Multiplayer

Zetrith's Multiplayer mod for RimWorld
MIT License
481 stars 96 forks source link

Fix issues due to _NewTemp methods, fixes heater/cooler temperature changes #472

Closed SokyranTheDragon closed 2 months ago

SokyranTheDragon commented 3 months ago

RW update add _NewTemp methods instead of replacing existing ones to keep backwards compatibility with mods. This allows mods calling those methods to work as they used to, but it causes issues with Harmony patches since those are no longer called by vanilla code. The change here is to target the _NewTemp methods Harmony patches (sync methods) rather than the original ones.

This should fix changing heater/cooler temperature settings as well as giving the players time to rename stillborn pawns (normally would be 1 tick in this situation).