mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2026-04-04 06:27:24 +02:00
fix: improve comments for clarity and update type imports for consistency
This commit is contained in:
parent
3c7b6fffef
commit
fae0bd1085
6 changed files with 37 additions and 23 deletions
|
|
@ -430,7 +430,7 @@ class MilitaryModule {
|
|||
nodes.forEach((node) => {
|
||||
tree.remove(node);
|
||||
const overlap = tree.find(node.x, node.y, 20);
|
||||
if (overlap && overlap.t && mergeable(node, overlap)) {
|
||||
if (overlap?.t && mergeable(node, overlap)) {
|
||||
merge(node, overlap);
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue