Crash fix / tilesSecond speed unit

This commit is contained in:
Anuken
2021-07-01 11:17:42 -04:00
parent 2ea1671739
commit ec59cb602c
6 changed files with 11 additions and 9 deletions

View File

@@ -75,7 +75,7 @@ public class PayloadConveyor extends Block{
@Override
public boolean canControlSelect(Player player){
return this.item == null && !player.unit().spawnedByCore && player.unit().hitSize / tilesize <= payloadLimit && player.tileOn().build == this;
return this.item == null && !player.unit().spawnedByCore && player.unit().hitSize / tilesize <= payloadLimit && player.tileOn() != null && player.tileOn().build == this;
}
@Override

View File

@@ -10,6 +10,7 @@ import java.util.*;
public enum StatUnit{
blocks,
blocksSquared,
tilesSecond,
powerSecond,
liquidSecond,
itemsSecond,