From 9806828760c07804e04375d58223b47b401f57f0 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Sun, 25 Sep 2022 15:02:48 +0100 Subject: [PATCH] core pos: fix worldedit compat --- worldeditadditions_core/core/pos_marker_manage.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/worldeditadditions_core/core/pos_marker_manage.lua b/worldeditadditions_core/core/pos_marker_manage.lua index ac24402..8b553ae 100644 --- a/worldeditadditions_core/core/pos_marker_manage.lua +++ b/worldeditadditions_core/core/pos_marker_manage.lua @@ -7,14 +7,14 @@ local function compat_worldedit_hide_pos1(player_name) local pos1 = worldedit.pos1[player_name] worldedit.pos1[player_name] = nil worldedit.mark_pos1(player_name) - worldedit.pos1[player_name] = nil + worldedit.pos1[player_name] = pos1 end local function compat_worldedit_hide_pos2(player_name) if not worldedit or not worldedit.pos2 or not worldedit.mark_pos2 then return end local pos2 = worldedit.pos2[player_name] worldedit.pos2[player_name] = nil worldedit.mark_pos2(player_name) - worldedit.pos2[player_name] = nil + worldedit.pos2[player_name] = pos2 end --- Ensures that a table exists for the given player.