Better 'conflicting tech' check for mods

This commit is contained in:
Yair Morgenstern 2021-01-06 22:41:00 +02:00
parent 2a262c506a
commit 78735bcfad

View File

@ -228,8 +228,8 @@ class Ruleset {
}
for (tech in technologies.values) {
for (otherTech in tech.column!!.techs) {
if (tech != otherTech && otherTech.row == tech.row)
for (otherTech in technologies.values) {
if (tech != otherTech && otherTech.column == tech.column && otherTech.row == tech.row)
lines += "${tech.name} is in the same row as ${otherTech.name}!"
}
}