mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-30 20:41:41 +09:00
Fixed reason Confirm
This commit is contained in:
@@ -82,7 +82,7 @@ Gui.new_button()
|
|||||||
end)
|
end)
|
||||||
:on_click(function(player,element)
|
:on_click(function(player,element)
|
||||||
local reason = element.parent.entry.text or 'Non Given'
|
local reason = element.parent.entry.text or 'Non Given'
|
||||||
local action_name = Store.get_child(action_name_store,player.name)
|
local action_name = Store.get(action_name_store,player.name)
|
||||||
local reason_callback = config[action_name].reason_callback
|
local reason_callback = config[action_name].reason_callback
|
||||||
reason_callback(player,reason)
|
reason_callback(player,reason)
|
||||||
Store.clear(action_player_store,player.name)
|
Store.clear(action_player_store,player.name)
|
||||||
|
|||||||
Reference in New Issue
Block a user