More payload router fixes

This commit is contained in:
Anuken 2022-06-08 12:41:20 -04:00
parent c1549c78f0
commit 9ed5491d6a
2 changed files with 3 additions and 3 deletions

View File

@ -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();
}
}

View File

@ -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();
}
}