From 58dd3ea875d85ffd81f98677180905b6a8194198 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Wed, 11 Jan 2023 02:18:06 +0000 Subject: [PATCH] Bugfix new marker system: properly check that the lua entity is a thing Missing () Might fix #88, but needs testing. --- worldeditadditions_core/core/entities/pos_marker.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worldeditadditions_core/core/entities/pos_marker.lua b/worldeditadditions_core/core/entities/pos_marker.lua index f069b28..6ce9c7c 100644 --- a/worldeditadditions_core/core/entities/pos_marker.lua +++ b/worldeditadditions_core/core/entities/pos_marker.lua @@ -53,7 +53,7 @@ local function create(player_name, pos, display_number) end local function delete(entity) - if not entity.get_luaentity then return end -- Ensure the entity is still valid + if not entity.get_luaentity() then return end -- Ensure the entity is still valid local player_name = entity:get_luaentity().player_name local display_number = entity:get_luaentity().display_number