Skip to content

Commit

Permalink
fix on_build event entities
Browse files Browse the repository at this point in the history
  • Loading branch information
przemo1232 committed Oct 25, 2024
1 parent 696d2a9 commit 5fa54f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion control.lua
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ local function render_text(drill, time_to_live)
end

py.on_event(py.events.on_built(), function(event)
local drill = event.created_entity or event.entity
local drill = event.entity
local drill_base = derrick_types[drill.name]
if not drill_base then return end

Expand Down

0 comments on commit 5fa54f9

Please sign in to comment.