From 9b05c51ae5b78eb39990600c92139732ed19d110 Mon Sep 17 00:00:00 2001 From: Evil Factory <36804725+evilfactory@users.noreply.github.com> Date: Sat, 4 Apr 2026 22:52:27 -0300 Subject: [PATCH] Fix calling Hook.Call directly from Lua being broken --- .../SharedSource/LuaCs/_Services/EventService.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Barotrauma/BarotraumaShared/SharedSource/LuaCs/_Services/EventService.cs b/Barotrauma/BarotraumaShared/SharedSource/LuaCs/_Services/EventService.cs index 0323fad08..e973d12f1 100644 --- a/Barotrauma/BarotraumaShared/SharedSource/LuaCs/_Services/EventService.cs +++ b/Barotrauma/BarotraumaShared/SharedSource/LuaCs/_Services/EventService.cs @@ -134,6 +134,7 @@ public partial class EventService : IEventService return Call(eventName, args); } + [MoonSharpHidden] // Needs to be hidden so Lua doesn't accidentally use this instead of the above public T Call(string eventName, params object[] args) { Guard.IsNotNullOrWhiteSpace(eventName, nameof(eventName));