Make red teleporters count as wired if they neighbor a logic gate
This commit is contained in:
1 parent
5384561413
commit
d251955684
1 file changed
+7
@@ -2387,6 +2387,13 @@ export class Level extends LevelInterface {
|
|||||||
if (! neighbor)
|
if (! neighbor)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
let terrain = neighbor.get_terrain();
|
||||||
|
if (terrain.type.name === 'logic_gate' &&
|
||||||
|
terrain.type.get_wires(terrain).includes(dirinfo.opposite))
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
let wired = neighbor.get_wired_tile();
|
let wired = neighbor.get_wired_tile();
|
||||||
if (! wired)
|
if (! wired)
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in new issue
Block a user