Prevent (world border) crash

Learned my lesson from the diode :)
This commit is contained in:
Patrick 'Quezler' Mounier 2020-01-06 18:13:40 +01:00
parent 0b3d4da92d
commit ecae603f50
No known key found for this signature in database
GPG Key ID: 0D6CA7326C76D8EA

View File

@ -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;