Fixed #8060
This commit is contained in:
@@ -380,19 +380,6 @@ public class Logic implements ApplicationListener{
|
||||
public static void researched(Content content){
|
||||
if(!(content instanceof UnlockableContent u)) return;
|
||||
|
||||
//TODO node is wrong for shared tech nodes
|
||||
var node = u.techNode;
|
||||
|
||||
//unlock all direct dependencies on client, permanently
|
||||
while(node != null){
|
||||
node.content.unlock();
|
||||
node = node.parent;
|
||||
|
||||
if(node != null && (node.content instanceof Item item && state.rules.hiddenBuildItems.contains(item))){
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
state.rules.researched.add(u.name);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user