From 23cfe4a4cf7a09a7ce6e7ecfd75af45d534566ed Mon Sep 17 00:00:00 2001 From: MihailRis Date: Mon, 15 Jul 2024 02:45:43 +0300 Subject: [PATCH] fix console.xml.lua --- res/layouts/console.xml.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/res/layouts/console.xml.lua b/res/layouts/console.xml.lua index 77cdf56f..0f69bdc9 100644 --- a/res/layouts/console.xml.lua +++ b/res/layouts/console.xml.lua @@ -8,8 +8,8 @@ function setup_variables() console.set('pos.y', y) console.set('pos.z', z) local pentity = player.get_entity(pid) - if pentity ~= nil then - console.set('entity.id', pentity:get_uid()) + if pentity ~= 0 then + console.set('entity.id', pentity) end end