mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-03-09 20:29:06 +07:00
Bugfixes
This commit is contained in:
parent
39276b4b03
commit
d218fb926a
Binary file not shown.
Binary file not shown.
@ -58,7 +58,7 @@ public class TechTreeDialog extends FloatingDialog{
|
|||||||
boolean locked = locked(node.node);
|
boolean locked = locked(node.node);
|
||||||
if(!locked) node.visible = true;
|
if(!locked) node.visible = true;
|
||||||
for(TechTreeNode l : node.children){
|
for(TechTreeNode l : node.children){
|
||||||
l.visible = !locked && l.node.block.isVisible();
|
l.visible = !locked;
|
||||||
checkNodes(l);
|
checkNodes(l);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -89,7 +89,7 @@ public class TechTreeDialog extends FloatingDialog{
|
|||||||
}
|
}
|
||||||
|
|
||||||
boolean locked(TechNode node){
|
boolean locked(TechNode node){
|
||||||
return !data.isUnlocked(node.block);
|
return node.block.locked();
|
||||||
}
|
}
|
||||||
|
|
||||||
class TechTreeNode extends TreeNode<TechTreeNode>{
|
class TechTreeNode extends TreeNode<TechTreeNode>{
|
||||||
|
@ -237,7 +237,7 @@ public class PowerGraph{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//currently ignores all other values and consumes power anyway.
|
//currently ignores all other consumers and consumes power anyway.
|
||||||
private boolean otherConsumersAreValid(Tile tile, Consume consumePower){
|
private boolean otherConsumersAreValid(Tile tile, Consume consumePower){
|
||||||
/*
|
/*
|
||||||
for(Consume cons : tile.block().consumes.all()){
|
for(Consume cons : tile.block().consumes.all()){
|
||||||
|
@ -98,7 +98,7 @@ public class RepairPoint extends Block{
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public TextureRegion[] generateIcons(){
|
public TextureRegion[] generateIcons(){
|
||||||
return new TextureRegion[]{Core.atlas.find(name + "-base"), Core.atlas.find(name + "-turret")};
|
return new TextureRegion[]{Core.atlas.find(name + "-base"), Core.atlas.find(name)};
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user