Skip to content

Commit

Permalink
Update OnAdjacentTo annotation comment (FAForever#6156)
Browse files Browse the repository at this point in the history
  • Loading branch information
lL1l1 authored May 5, 2024
1 parent d686f1e commit c8e26dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog/snippets/other.6156.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- (#6156) Mention that `OnAdjacentTo` only works for same-army structures in the annotation comment.
2 changes: 1 addition & 1 deletion lua/sim/units/StructureUnit.lua
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,7 @@ StructureUnit = ClassUnit(Unit) {
---------------------------------------------------------------------------
--#region Adjacency feature

-- Called by the engine when a structure is finished building for each adjacent unit
-- Called by the engine when a structure in the same army is finished building for each adjacent unit
---@param self StructureUnit
---@param adjacentUnit StructureUnit
---@param triggerUnit StructureUnit
Expand Down

0 comments on commit c8e26dc

Please sign in to comment.