mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-10-31 21:33:02 +00:00
core pos: fix worldedit compat
This commit is contained in:
parent
888e4b0f78
commit
9806828760
1 changed files with 2 additions and 2 deletions
|
@ -7,14 +7,14 @@ local function compat_worldedit_hide_pos1(player_name)
|
||||||
local pos1 = worldedit.pos1[player_name]
|
local pos1 = worldedit.pos1[player_name]
|
||||||
worldedit.pos1[player_name] = nil
|
worldedit.pos1[player_name] = nil
|
||||||
worldedit.mark_pos1(player_name)
|
worldedit.mark_pos1(player_name)
|
||||||
worldedit.pos1[player_name] = nil
|
worldedit.pos1[player_name] = pos1
|
||||||
end
|
end
|
||||||
local function compat_worldedit_hide_pos2(player_name)
|
local function compat_worldedit_hide_pos2(player_name)
|
||||||
if not worldedit or not worldedit.pos2 or not worldedit.mark_pos2 then return end
|
if not worldedit or not worldedit.pos2 or not worldedit.mark_pos2 then return end
|
||||||
local pos2 = worldedit.pos2[player_name]
|
local pos2 = worldedit.pos2[player_name]
|
||||||
worldedit.pos2[player_name] = nil
|
worldedit.pos2[player_name] = nil
|
||||||
worldedit.mark_pos2(player_name)
|
worldedit.mark_pos2(player_name)
|
||||||
worldedit.pos2[player_name] = nil
|
worldedit.pos2[player_name] = pos2
|
||||||
end
|
end
|
||||||
|
|
||||||
--- Ensures that a table exists for the given player.
|
--- Ensures that a table exists for the given player.
|
||||||
|
|
Loading…
Reference in a new issue