Draw plastanium conveyors on conveyors layer (#4446)

This commit is contained in:
Joshua Fan 2021-01-27 09:08:51 -08:00 committed by GitHub
parent d0572a2a0d
commit a667a94c8e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -109,6 +109,8 @@ public class StackConveyor extends Block implements Autotiler{
@Override
public void draw(){
Draw.z(Layer.block - 0.2f);
Draw.rect(regions[state], x, y, rotdeg());
for(int i = 0; i < 4; i++){
@ -117,7 +119,7 @@ public class StackConveyor extends Block implements Autotiler{
}
}
Draw.z(Layer.blockOver);
Draw.z(Layer.block - 0.1f);
Tile from = world.tile(link);
@ -145,6 +147,12 @@ public class StackConveyor extends Block implements Autotiler{
Draw.rect(lastItem.icon(Cicon.medium), Tmp.v1.x, Tmp.v1.y, size, size, 0);
}
@Override
public void drawCracks(){
Draw.z(Layer.block - 0.15f);
super.drawCracks();
}
@Override
public void onProximityUpdate(){
super.onProximityUpdate();