This commit is contained in:
Anuken 2020-12-02 09:56:02 -05:00
parent 430538ea7e
commit 775e17a726
3 changed files with 13 additions and 2 deletions

View File

@ -714,8 +714,14 @@ public class TechTree implements ContentList{
finishedRequirements[i] = new ItemStack(requirements[i].item, Core.settings == null ? 0 : Core.settings.getInt("req-" + content.name + "-" + requirements[i].item.name));
}
var used = new ObjectSet<Content>();
//add dependencies as objectives.
content.getDependencies(d -> objectives.add(new Research(d)));
content.getDependencies(d -> {
if(used.add(d)){
objectives.add(new Research(d));
}
});
map.put(content, this);
all.add(this);

View File

@ -75,7 +75,7 @@ public class Weathers implements ContentList{
attrs.set(Attribute.spores, 1f);
attrs.set(Attribute.light, -0.15f);
status = StatusEffects.sporeSlowed;
opacityMultiplier = 0.75f;
opacityMultiplier = 0.5f;
force = 0.1f;
sound = Sounds.wind;
soundVol = 0.7f;

View File

@ -0,0 +1,5 @@
[This is a truncated changelog, see Github for full notes]
Yeah, it's another hotfix. I missed these during earlier testing.
- Fixed research deadlock caused by blocks requiring optional inputs as research
- Possible fix for "Unsupported combination of formats" startup error