mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-04 07:17:19 +07:00
Block trading
This commit is contained in:
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user