Prevent (world border) crash
Learned my lesson from the diode :)
This commit is contained in:
@@ -119,6 +119,9 @@ public class CraterConveyor extends BaseConveyor{
|
||||
if(shouldLaunch(tile)){
|
||||
Tile destination = tile.front();
|
||||
|
||||
// failsafe
|
||||
if(destination == null) return;
|
||||
|
||||
// prevent trading
|
||||
if(destination.getTeam() != tile.getTeam()) return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user