From 0bf25cdd0154fe6279b28718a76e05fa90e6fe2e Mon Sep 17 00:00:00 2001 From: buthed010203 Date: Fri, 28 May 2021 13:27:20 -0400 Subject: [PATCH] fix potential crash (#5305) I dont think this can even happen without some plugins or mods but its better to be safe than sorry. --- core/src/mindustry/world/blocks/distribution/MassDriver.java | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/mindustry/world/blocks/distribution/MassDriver.java b/core/src/mindustry/world/blocks/distribution/MassDriver.java index 5b9d4e6f13..37d5079144 100644 --- a/core/src/mindustry/world/blocks/distribution/MassDriver.java +++ b/core/src/mindustry/world/blocks/distribution/MassDriver.java @@ -319,6 +319,7 @@ public class MassDriver extends Block{ @Override public Point2 config(){ + if(tile == null) return null; return Point2.unpack(link).sub(tile.x, tile.y); }