[YouAreMyPropNowWeAreHavingSoftTacosLater] fix for relative sync
Some checks failed
Update Mod List / update-modlist (push) Has been cancelled

This commit is contained in:
NotAKidoS 2025-04-12 17:01:33 -05:00
parent 47b69dfbc7
commit ece15e0dfc

View file

@ -231,6 +231,7 @@ public class YouAreMyPropNowWeAreHavingSoftTacosLaterMod : MelonMod
// Apply new prop data to the spawnable
newPropData.Spawnable = originalPropData.Spawnable;
newPropData.Wrapper = originalPropData.Wrapper;
newPropData.Wrapper.BroadcastMessage("OnHavingSoftTacosNow", SendMessageOptions.DontRequireReceiver); // support with RelativeSync
newPropData.Wrapper.name = $"p+{newPropData.ObjectId}~{newPropData.InstanceId}";
// Copy sync values