mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-27 09:33:52 +01:00
core pos: fix worldedit compat
This commit is contained in:
parent
888e4b0f78
commit
9806828760
@ -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 New Issue
Block a user