mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-28 07:22:21 -08:00
Fixed #7256
This commit is contained in:
parent
c1971cb5b1
commit
b9753204da
1 changed files with 4 additions and 4 deletions
|
|
@ -17,7 +17,6 @@ import mindustry.type.*;
|
|||
import mindustry.world.*;
|
||||
import mindustry.world.blocks.*;
|
||||
import mindustry.world.blocks.distribution.Conveyor.*;
|
||||
import mindustry.world.blocks.distribution.Duct.*;
|
||||
import mindustry.world.meta.*;
|
||||
|
||||
import static mindustry.Vars.*;
|
||||
|
|
@ -134,14 +133,15 @@ public class StackConveyor extends Block implements Autotiler{
|
|||
//draw inputs
|
||||
if(state == stateLoad){
|
||||
for(int i = 0; i < 4; i++){
|
||||
if((blendprox & (1 << i)) != 0 && i != 0){
|
||||
int dir = rotation - i;
|
||||
int dir = rotation - i;
|
||||
var near = nearby(dir);
|
||||
if((blendprox & (1 << i)) != 0 && i != 0 && near != null && !near.block.fillsTile){
|
||||
Draw.rect(sliced(regions[0], SliceMode.bottom), x + Geometry.d4x(dir) * tilesize*0.75f, y + Geometry.d4y(dir) * tilesize*0.75f, (float)(dir*90));
|
||||
}
|
||||
}
|
||||
}else if(state == stateUnload){ //front unload
|
||||
//TOOD hacky front check
|
||||
if((blendprox & (1)) != 0 && !(front() instanceof DuctBuild)){
|
||||
if((blendprox & (1)) != 0 && !front().block.fillsTile){
|
||||
Draw.rect(sliced(regions[0], SliceMode.top), x + Geometry.d4x(rotation) * tilesize*0.75f, y + Geometry.d4y(rotation) * tilesize*0.75f, rotation * 90f);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue