Only unload if its ¬ the tile it spawned on

¬ loading if it both start & end plays weird
¬ unloading if it both start & end plays weird
——
so only unloading if the origin tile is ¬ the unload tile is the only smooth option

sadly this does block player feeding the conveyor at the last tile in the chain
This commit is contained in:
Patrick 'Quezler' Mounier 2020-01-06 17:47:22 +01:00
parent 6b3dc669eb
commit 9891e971ea
No known key found for this signature in database
GPG Key ID: 0D6CA7326C76D8EA

View File

@ -126,7 +126,7 @@ public class CraterConveyor extends BaseConveyor{
// when near the center of the target tile...
if(entity.reload < 0.25f){
if(!(destination.block() instanceof CraterConveyor)){ // ...and if its not a crater conveyor, start unloading (everything)
if(!(destination.block() instanceof CraterConveyor) && entity.link != tile.pos()){ // ...and if its not a crater conveyor, start unloading (everything)
while(entity.items.total() > 0 && entity.dominant() != null && offloadDir(tile, entity.dominant())) entity.items.remove(entity.dominant(), 1);
}
}