mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-28 07:22:21 -08:00
Crash fix
This commit is contained in:
parent
47b4da59e0
commit
0847fc9f09
1 changed files with 2 additions and 2 deletions
|
|
@ -117,7 +117,7 @@ public class StackConveyor extends Block implements Autotiler{
|
|||
|
||||
Tile from = world.tile(link);
|
||||
|
||||
if(link == -1 || from == null) return;
|
||||
if(link == -1 || from == null || lastItem == null) return;
|
||||
|
||||
int fromRot = from.build == null ? rotation : from.build.rotation;
|
||||
|
||||
|
|
@ -138,7 +138,7 @@ public class StackConveyor extends Block implements Autotiler{
|
|||
//item
|
||||
float size = itemSize * Mathf.lerp(Math.min((float)items.total() / itemCapacity, 1), 1f, 0.4f);
|
||||
Drawf.shadow(Tmp.v1.x, Tmp.v1.y, size * 1.2f);
|
||||
Draw.rect(items.first().icon(Cicon.medium), Tmp.v1.x, Tmp.v1.y, size, size, 0);
|
||||
Draw.rect(lastItem.icon(Cicon.medium), Tmp.v1.x, Tmp.v1.y, size, size, 0);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue