This commit is contained in:
Anuken
2025-02-09 11:49:26 -05:00
parent 3246c0c39b
commit 3378475f6a

View File

@@ -47,8 +47,10 @@ public class PayloadConveyor extends Block{
public void drawPlace(int x, int y, int rotation, boolean valid){ public void drawPlace(int x, int y, int rotation, boolean valid){
super.drawPlace(x, y, rotation, valid); super.drawPlace(x, y, rotation, valid);
int ntrns = 1 + size/2;
for(int i = 0; i < 4; i++){ for(int i = 0; i < 4; i++){
Building other = world.build(x + Geometry.d4x[i] * size, y + Geometry.d4y[i] * size); Building other = world.build(x + Geometry.d4x[i] * ntrns, y + Geometry.d4y[i] * ntrns);
if(other != null && other.block.outputsPayload && other.block.size == size){ if(other != null && other.block.outputsPayload && other.block.size == size){
Drawf.selected(other.tileX(), other.tileY(), other.block, other.team.color); Drawf.selected(other.tileX(), other.tileY(), other.block, other.team.color);
} }