Block trading
This commit is contained in:
@@ -119,6 +119,9 @@ public class CraterConveyor extends BaseConveyor{
|
|||||||
if(shouldLaunch(tile)){
|
if(shouldLaunch(tile)){
|
||||||
Tile destination = tile.front();
|
Tile destination = tile.front();
|
||||||
|
|
||||||
|
// prevent trading
|
||||||
|
if(destination.getTeam() != tile.getTeam()) return;
|
||||||
|
|
||||||
// update the target first to potentially make room
|
// update the target first to potentially make room
|
||||||
destination.block().update(destination);
|
destination.block().update(destination);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user