This commit is contained in:
Anuken 2025-10-03 06:33:23 +09:00
parent b31df41018
commit a1a880a208

View file

@ -133,7 +133,7 @@ public class StackConveyor extends Block implements Autotiler{
//draw inputs //draw inputs
if(state == stateLoad){ if(state == stateLoad){
for(int i = 0; i < 4; i++){ for(int i = 0; i < 4; i++){
int dir = rotation - i; int dir = Mathf.mod(rotation - i, 4);
var near = nearby(dir); var near = nearby(dir);
if((blendprox & (1 << i)) != 0 && i != 0 && near != null && !near.block.squareSprite){ if((blendprox & (1 << i)) != 0 && i != 0 && near != null && !near.block.squareSprite){
Draw.rect(sliced(regions[0], SliceMode.bottom), x + Geometry.d4x(dir) * tilesize*0.75f, y + Geometry.d4y(dir) * tilesize*0.75f, (float)(dir*90)); Draw.rect(sliced(regions[0], SliceMode.bottom), x + Geometry.d4x(dir) * tilesize*0.75f, y + Geometry.d4y(dir) * tilesize*0.75f, (float)(dir*90));