From 0b3d4da92d7031b11a2a4930574274d4f26e30ac Mon Sep 17 00:00:00 2001 From: Patrick 'Quezler' Mounier Date: Mon, 6 Jan 2020 18:12:10 +0100 Subject: [PATCH] Block trading --- .../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 c2fb5ff5b0..de89e958e9 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(); + // prevent trading + if(destination.getTeam() != tile.getTeam()) return; + // update the target first to potentially make room destination.block().update(destination);