Skip to content

Commit

Permalink
Rename some LuaLS types to match 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ahicks92 committed Oct 25, 2024
1 parent 513411c commit 4a250db
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/scanner/backends/simple.lua
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function SimpleBackend:on_new_entity(ent)
self.known_entities[script.register_on_object_destroyed(ent)] = ent
end

---@param event EventData.on_entity_destroyed
---@param event EventData.on_object_destroyed
function SimpleBackend:on_entity_destroyed(event)
self.known_entities[event.registration_number] = nil
self.entry_cache[event.registration_number] = nil
Expand Down
2 changes: 1 addition & 1 deletion scripts/scanner/backends/trees.lua
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function TreeBackend:on_new_entity(entity)
table.insert(self.point_queue, { x = cx, y = cy })
end

---@param event EventData.on_entity_destroyed
---@param event EventData.on_object_destroyed
function TreeBackend:on_entity_destroyed(event) end

function TreeBackend:update_entry(player, e)
Expand Down
2 changes: 1 addition & 1 deletion scripts/scanner/surface-scanner.lua
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ local work_queue = WorkQueue.declare_work_queue({
idle_function = redispatch,
})

---@param event EventData.on_entity_destroyed
---@param event EventData.on_object_destroyed
function mod.on_entity_destroyed(event)
for _, s in pairs(surface_state) do
if s.seen_entities:remove(event.registration_number) then
Expand Down

0 comments on commit 4a250db

Please sign in to comment.