From a9634988e9941cc224358b8b2141398a4379b638 Mon Sep 17 00:00:00 2001 From: Evil Factory <36804725+evilfactory@users.noreply.github.com> Date: Thu, 9 Apr 2026 11:18:18 -0300 Subject: [PATCH] Fix signalReceived hook not being called --- .../SharedSource/LuaCs/_Services/HarmonyEventPatchesService.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/Barotrauma/BarotraumaShared/SharedSource/LuaCs/_Services/HarmonyEventPatchesService.cs b/Barotrauma/BarotraumaShared/SharedSource/LuaCs/_Services/HarmonyEventPatchesService.cs index eb58aebcd..00e3536fa 100644 --- a/Barotrauma/BarotraumaShared/SharedSource/LuaCs/_Services/HarmonyEventPatchesService.cs +++ b/Barotrauma/BarotraumaShared/SharedSource/LuaCs/_Services/HarmonyEventPatchesService.cs @@ -244,7 +244,6 @@ internal class HarmonyEventPatchesService : ISystem { Connection recipient = wire.OtherConnection(__instance); if (recipient == null) { continue; } - if (recipient.Item == __instance.Item || signal.source?.LastSentSignalRecipients.LastOrDefault() == recipient) { continue; } _eventService.PublishEvent(x => x.OnSignalReceived(signal, recipient)); _eventService.Call("signalReceived." + recipient.Item.Prefab.Identifier, signal, recipient);