From 51c9356eccd1613354558aa5cb1c58db1e41a90e Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Thu, 21 Nov 2024 08:45:14 +0900 Subject: [PATCH] Fix on_built_entity in deconlog.lua (#8) --- exp_legacy/module/modules/addons/deconlog.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exp_legacy/module/modules/addons/deconlog.lua b/exp_legacy/module/modules/addons/deconlog.lua index 5eac1188..08c40b8f 100644 --- a/exp_legacy/module/modules/addons/deconlog.lua +++ b/exp_legacy/module/modules/addons/deconlog.lua @@ -77,7 +77,7 @@ if config.built_entity then if Roles.player_has_flag(player, "deconlog-bypass") then return end - local ent = e.created_entity + local ent = e.entity add_log(get_secs() .. "," .. player.name .. ",built_entity," .. ent.name .. "," .. pos_to_string(ent.position) .. "," .. tostring(ent.direction) .. "," .. tostring(ent.orientation)) end) end