mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-03-09 04:09:07 +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);
|
||||
if(!locked) node.visible = true;
|
||||
for(TechTreeNode l : node.children){
|
||||
l.visible = !locked && l.node.block.isVisible();
|
||||
l.visible = !locked;
|
||||
checkNodes(l);
|
||||
}
|
||||
|
||||
@ -89,7 +89,7 @@ public class TechTreeDialog extends FloatingDialog{
|
||||
}
|
||||
|
||||
boolean locked(TechNode node){
|
||||
return !data.isUnlocked(node.block);
|
||||
return node.block.locked();
|
||||
}
|
||||
|
||||
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){
|
||||
/*
|
||||
for(Consume cons : tile.block().consumes.all()){
|
||||
|
@ -98,7 +98,7 @@ public class RepairPoint extends Block{
|
||||
|
||||
@Override
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user