Block trading

This commit is contained in:
Patrick 'Quezler' Mounier 2020-01-06 18:12:10 +01:00
parent 6e8ba927dd
commit 0b3d4da92d
No known key found for this signature in database
GPG Key ID: 0D6CA7326C76D8EA

View File

@ -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);