mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-27 08:00:04 +07:00
Prevent (world border) crash
Learned my lesson from the diode :)
This commit is contained in:
parent
0b3d4da92d
commit
ecae603f50
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user