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