Block tech tree mods

This commit is contained in:
Anuken
2019-10-01 21:47:02 -04:00
parent 5b8c237a1e
commit d9b8335e0e
3 changed files with 20 additions and 8 deletions

View File

@@ -70,6 +70,9 @@ public class ContentParser{
Block block = type.getDeclaredConstructor(String.class).newInstance(mod + "-" + name);
read(() -> {
readFields(block, value, true);
if(value.has("research")){
TechTree.create(Vars.content.getByName(ContentType.block, value.get("research").asString()), block);
}
//make block visible
if(block.requirements != null){