mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-03-10 04:40:10 +07:00
Fixed #10474
This commit is contained in:
parent
28283b45e4
commit
88cfb10621
@ -99,6 +99,7 @@ public class TechTree{
|
||||
public TechNode(@Nullable TechNode parent, UnlockableContent content, ItemStack[] requirements){
|
||||
if(parent != null){
|
||||
parent.children.add(this);
|
||||
planet = parent.planet;
|
||||
researchCostMultipliers = parent.researchCostMultipliers;
|
||||
}else if(researchCostMultipliers == null){
|
||||
researchCostMultipliers = new ObjectFloatMap<>();
|
||||
|
@ -1224,6 +1224,7 @@ public class ContentParser{
|
||||
}
|
||||
//reparent the node
|
||||
node.parent = parent;
|
||||
node.planet = parent.planet;
|
||||
}
|
||||
}else{
|
||||
Log.warn(unlock.name + " is not a root node, and does not have a `parent: ` property. Ignoring.");
|
||||
|
@ -132,7 +132,7 @@ public class ColorPicker extends BaseDialog{
|
||||
|
||||
hexField = t.field(current.toString(), value -> {
|
||||
try{
|
||||
current.set(Color.valueOf(value).a(a));
|
||||
Color.valueOf(current, value);
|
||||
current.toHsv(values);
|
||||
h = values[0];
|
||||
s = values[1];
|
||||
|
Loading…
Reference in New Issue
Block a user