Fix tile modifications failing
This commit is contained in:
parent
16bbc243e8
commit
7efa39bb47
@ -122,7 +122,7 @@ sealed class TileModification {
|
|||||||
world.geometry.y.cell(y - 1) == y ||
|
world.geometry.y.cell(y - 1) == y ||
|
||||||
world.geometry.y.cell(y + 1) == y ||
|
world.geometry.y.cell(y + 1) == y ||
|
||||||
world.anyCellSatisfies(x, y, 1) { tx, ty, tcell ->
|
world.anyCellSatisfies(x, y, 1) { tx, ty, tcell ->
|
||||||
tx != x && ty != y && (tcell.foreground.material.value.isConnectable || tcell.background.material.value.isConnectable)
|
(tx != x || ty != y) && (tcell.foreground.material.value.isConnectable || tcell.background.material.value.isConnectable)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user