public static void SendPacket(UISpraycoaterWindow window) { SpraycoaterComponent spraycoater = window.traffic.spraycoaterPool[window._spraycoaterId]; int planetId = window.traffic.planet.id; Multiplayer.Session.Network.SendPacketToLocalStar(new SprayerStorageUpdatePacket(in spraycoater, planetId)); }
public static void OnTakeBackPointerUp_Prefix(UISpraycoaterWindow __instance) { if (Multiplayer.IsActive) { SendPacket(__instance); } }