mirror of
https://github.com/JamesClarke7283/proposals.git
synced 2025-03-15 05:31:20 +00:00
Fixed edit and delete comment buttons
This commit is contained in:
parent
0dfdba8555
commit
f25961f13e
1 changed files with 2 additions and 2 deletions
4
init.lua
4
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
|
-- Edit and Delete buttons for the player's own comment
|
||||||
if has_commented then
|
if has_commented then
|
||||||
formspec = formspec .. "button[9,9.5;3,1;edit_my_comment;Edit Comment]" ..
|
formspec = formspec .. "button[9,9.5;3,1;edit_comment_" .. player_name .. ";Edit Comment]" ..
|
||||||
"button[9,10.5;3,1;delete_my_comment;Delete Comment]"
|
"button[9,10.5;3,1;delete_comment_" .. player_name .. ";Delete Comment]"
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Add Comment button only if the player has not commented and is not the author
|
-- Add Comment button only if the player has not commented and is not the author
|
||||||
|
|
Loading…
Add table
Reference in a new issue