This commit is contained in:
Anuken
2021-10-12 12:35:46 -04:00
parent d5f7fc842c
commit 25c8623e30

View File

@@ -104,7 +104,7 @@ public class Router extends Block{
int angle = Mathf.mod((int)((angleTo(unit.aimX(), unit.aimY()) + 45) / 90), 4); int angle = Mathf.mod((int)((angleTo(unit.aimX(), unit.aimY()) + 45) / 90), 4);
if(unit.isShooting()){ if(unit.isShooting()){
Building other = nearby(angle); Building other = nearby(rotation = angle);
if(other != null && other.acceptItem(this, item)){ if(other != null && other.acceptItem(this, item)){
return other; return other;
} }