From f25961f13e1285b5fc7016995e9aa2ca71f1e4a4 Mon Sep 17 00:00:00 2001 From: James David Clarke Date: Sat, 23 Dec 2023 21:12:57 +0000 Subject: [PATCH] Fixed edit and delete comment buttons --- init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index 10d047e..71aeea6 100644 --- a/init.lua +++ b/init.lua @@ -111,8 +111,8 @@ local function show_proposal_details(player_name, proposal_index) -- Edit and Delete buttons for the player's own comment if has_commented then - formspec = formspec .. "button[9,9.5;3,1;edit_my_comment;Edit Comment]" .. - "button[9,10.5;3,1;delete_my_comment;Delete Comment]" + formspec = formspec .. "button[9,9.5;3,1;edit_comment_" .. player_name .. ";Edit Comment]" .. + "button[9,10.5;3,1;delete_comment_" .. player_name .. ";Delete Comment]" end -- Add Comment button only if the player has not commented and is not the author