diff --git a/core/src/mindustry/content/Blocks.java b/core/src/mindustry/content/Blocks.java index 34d46e749c..a4bb6fd822 100644 --- a/core/src/mindustry/content/Blocks.java +++ b/core/src/mindustry/content/Blocks.java @@ -3816,6 +3816,7 @@ public class Blocks{ requirements(Category.logic, BuildVisibility.editorOnly, with()); //TODO customizable IPT + targetable = false; instructionsPerTick = 8; forceDark = true; privileged = true; diff --git a/core/src/mindustry/content/UnitTypes.java b/core/src/mindustry/content/UnitTypes.java index 66bb760fcb..b2e69cc0c9 100644 --- a/core/src/mindustry/content/UnitTypes.java +++ b/core/src/mindustry/content/UnitTypes.java @@ -3140,7 +3140,7 @@ public class UnitTypes{ mineTier = 4; buildSpeed = 0.8f; drag = 0.08f; - speed = 5.3f; + speed = 5.4f; rotateSpeed = 7f; accel = 0.09f; itemCapacity = 60; @@ -3197,7 +3197,7 @@ public class UnitTypes{ mineTier = 4; buildSpeed = 1.1f; drag = 0.08f; - speed = 6.5f; + speed = 6.6f; rotateSpeed = 8f; accel = 0.09f; itemCapacity = 90; @@ -3266,7 +3266,7 @@ public class UnitTypes{ mineTier = 4; buildSpeed = 1.4f; drag = 0.08f; - speed = 7.3f; + speed = 7.4f; rotateSpeed = 8f; accel = 0.08f; itemCapacity = 110; diff --git a/core/src/mindustry/entities/comp/BuildingComp.java b/core/src/mindustry/entities/comp/BuildingComp.java index 52e3969ed1..6b03cc4e30 100644 --- a/core/src/mindustry/entities/comp/BuildingComp.java +++ b/core/src/mindustry/entities/comp/BuildingComp.java @@ -1264,6 +1264,10 @@ abstract class BuildingComp implements Posc, Teamc, Healthc, Buildingc, Timerc, return items; } + public boolean displayable(){ + return true; + } + @Override public void display(Table table){ //display the block stuff diff --git a/core/src/mindustry/ui/fragments/PlacementFragment.java b/core/src/mindustry/ui/fragments/PlacementFragment.java index b9ff82feb0..cb43e89fc2 100644 --- a/core/src/mindustry/ui/fragments/PlacementFragment.java +++ b/core/src/mindustry/ui/fragments/PlacementFragment.java @@ -479,7 +479,7 @@ public class PlacementFragment extends Fragment{ Tile hoverTile = world.tileWorld(Core.input.mouseWorld().x, Core.input.mouseWorld().y); if(hoverTile != null){ //if the tile has a building, display it - if(hoverTile.build != null){ + if(hoverTile.build != null && hoverTile.build.displayable()){ hoverTile.build.updateFlow = true; return hoverTile.build; } diff --git a/core/src/mindustry/world/blocks/logic/LogicBlock.java b/core/src/mindustry/world/blocks/logic/LogicBlock.java index 4323181a86..feafd29e16 100644 --- a/core/src/mindustry/world/blocks/logic/LogicBlock.java +++ b/core/src/mindustry/world/blocks/logic/LogicBlock.java @@ -381,6 +381,11 @@ public class LogicBlock extends Block{ return !privileged; } + @Override + public boolean displayable(){ + return accessible(); + } + @Override public void damage(float damage){ if(!privileged){