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)){
|
if(shouldLaunch(tile)){
|
||||||
Tile destination = tile.front();
|
Tile destination = tile.front();
|
||||||
|
|
||||||
|
// failsafe
|
||||||
|
if(destination == null) return;
|
||||||
|
|
||||||
// prevent trading
|
// prevent trading
|
||||||
if(destination.getTeam() != tile.getTeam()) return;
|
if(destination.getTeam() != tile.getTeam()) return;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user