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