mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-12-04 13:03:59 +01:00
Bugfix: fix crash in pos_marker_wall/delete
This commit is contained in:
parent
f590304995
commit
b42c8f2641
@ -20,6 +20,7 @@ local last_resets = {}
|
|||||||
-- @param player_name string The name of the player to fetch the last_reset value for.
|
-- @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.
|
-- @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)
|
local function get_last_reset(player_name, update)
|
||||||
|
if player_name == nil then return nil end
|
||||||
if update == nil then update = false end
|
if update == nil then update = false end
|
||||||
if last_resets[player_name] == nil or update then
|
if last_resets[player_name] == nil or update then
|
||||||
last_resets[player_name] = make_id()
|
last_resets[player_name] = make_id()
|
||||||
|
Loading…
Reference in New Issue
Block a user