From b42c8f264117105e3dfd430dd519e1ace4896ed7 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Sun, 20 Aug 2023 16:46:30 +0100 Subject: [PATCH] Bugfix: fix crash in pos_marker_wall/delete --- worldeditadditions_core/core/entities/pos_marker_wall.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/worldeditadditions_core/core/entities/pos_marker_wall.lua b/worldeditadditions_core/core/entities/pos_marker_wall.lua index acf2072..4dfb297 100644 --- a/worldeditadditions_core/core/entities/pos_marker_wall.lua +++ b/worldeditadditions_core/core/entities/pos_marker_wall.lua @@ -20,6 +20,7 @@ local last_resets = {} -- @param player_name string The name of the player to fetch the last_reset value for. -- @param update=false bool If true, then update the last_reset value for the given player to a new value. local function get_last_reset(player_name, update) + if player_name == nil then return nil end if update == nil then update = false end if last_resets[player_name] == nil or update then last_resets[player_name] = make_id()