Massive TechTree system cleanup

This commit is contained in:
Anuken
2021-11-28 13:48:06 -05:00
parent c1477e1f2f
commit 30e2d52341
22 changed files with 755 additions and 782 deletions

View File

@@ -3,7 +3,6 @@ package mindustry.net;
import arc.*;
import arc.util.*;
import arc.util.io.*;
import mindustry.content.*;
import mindustry.core.*;
import mindustry.ctype.*;
import mindustry.game.*;
@@ -29,7 +28,7 @@ public class NetworkIO{
state.rules.researched.clear();
for(ContentType type : ContentType.all){
for(Content c : content.getBy(type)){
if(c instanceof UnlockableContent u && u.unlocked() && TechTree.get(u) != null){
if(c instanceof UnlockableContent u && u.unlocked() && u.techNode != null){
state.rules.researched.add(u.name);
}
}