From ff833a9b0b8215649d73176473378198dced80e1 Mon Sep 17 00:00:00 2001 From: Cooldude2606 <25043174+Cooldude2606@users.noreply.github.com> Date: Mon, 13 Jan 2025 21:16:55 +0000 Subject: [PATCH] Fix LuaObject inheritance from userdata --- type.patch.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/type.patch.lua b/type.patch.lua index b27b5997..38c854d7 100644 --- a/type.patch.lua +++ b/type.patch.lua @@ -29,7 +29,11 @@ script = { --- --- Type patched in 2.0.28: [Bug Report](https://forums.factorio.com/viewtopic.php?f=233&t=125062) --- Changed "event" from "string | integer" to "LuaEventType" + --- Resolved in 2.0.29, this patch will be removed was version is stable ---@param event LuaEventType ID or name of the event to raise. ---@param data table Table with extra data that will be passed to the event handler. Any invalid LuaObjects will silently stop the event from being raised. raise_event = function(event, data) end; } + +---@class LuaObject:userdata +--https://github.com/justarandomgeek/vscode-factoriomod-debug/issues/165