Add player as an event argument

This commit is contained in:
Cooldude2606 committed 2025-01-30 00:08:46 +00:00
1 parent 1a88592a8a
commit 6850cfa968
17 files changed
+91 -141

No files matched your search

+1 -2
View File
@@ -174,8 +174,7 @@ Gui.toolbar.create_button{
visible = function(player, element)
return Roles.player_allowed(player, "gui/landfill")
end
}:on_click(function(def, event, element)
local player = Gui.get_player(event)
}:on_click(function(def, player, element)
if player.cursor_stack and player.cursor_stack.valid_for_read then
if player.cursor_stack.type == "blueprint" and player.cursor_stack.is_blueprint_setup() then
local modified = landfill_gui_add_landfill(player.cursor_stack)