mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-03-06 07:30:35 +07:00
More payload router fixes
This commit is contained in:
parent
c1549c78f0
commit
9ed5491d6a
@ -99,10 +99,10 @@ public class PayloadRouter extends PayloadConveyor{
|
||||
super.control(type, p1, p2, p3, p4);
|
||||
if(type == LAccess.config){
|
||||
int prev = rotation;
|
||||
rotation = (int)p1;
|
||||
rotation = Mathf.mod((int)p1, 4);
|
||||
//when manually controlled, routers do not turn automatically for a while, same as turrets
|
||||
controlTime = 60f * 6f;
|
||||
if(prev != (int)p1){
|
||||
if(prev != rotation){
|
||||
onProximityUpdate();
|
||||
}
|
||||
}
|
||||
|
@ -119,7 +119,7 @@ public class UnitFactory extends UnitBlock{
|
||||
table.table(req -> {
|
||||
req.left();
|
||||
StatValues.items(plan.requirements).display(req);
|
||||
}).padLeft(40).left();
|
||||
}).padLeft(60).left().row();
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user