Crash fix / tilesSecond speed unit
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -10,6 +10,7 @@ import java.util.*;
|
||||
public enum StatUnit{
|
||||
blocks,
|
||||
blocksSquared,
|
||||
tilesSecond,
|
||||
powerSecond,
|
||||
liquidSecond,
|
||||
itemsSecond,
|
||||
|
||||
Reference in New Issue
Block a user