From ecae603f504edb5ae8cb65271995351f8820d06d Mon Sep 17 00:00:00 2001 From: Patrick 'Quezler' Mounier Date: Mon, 6 Jan 2020 18:13:40 +0100 Subject: [PATCH] Prevent (world border) crash Learned my lesson from the diode :) --- .../mindustry/world/blocks/distribution/CraterConveyor.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/src/mindustry/world/blocks/distribution/CraterConveyor.java b/core/src/mindustry/world/blocks/distribution/CraterConveyor.java index de89e958e9..e8f9e9471a 100644 --- a/core/src/mindustry/world/blocks/distribution/CraterConveyor.java +++ b/core/src/mindustry/world/blocks/distribution/CraterConveyor.java @@ -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;