Plastanium conveyor blend fix

This commit is contained in:
Anuken
2020-07-24 12:56:30 -04:00
parent 0372ec7c9f
commit 8db4f88ecc
2 changed files with 5 additions and 1 deletions

View File

@@ -603,6 +603,10 @@ public class Block extends UnlockableContent{
health = size * size * 40;
}
if(group == BlockGroup.transportation || consumes.has(ConsumeType.item) || category == Category.distribution){
acceptsItems = true;
}
offset = ((size + 1) % 2) * tilesize / 2f;
buildCost = 0f;

View File

@@ -57,7 +57,7 @@ public class StackConveyor extends Block implements Autotiler{
if(state == stateLoad){ //standard conveyor mode
return otherblock.outputsItems() && lookingAtEither(tile, rotation, otherx, othery, otherrot, otherblock);
}else if(state == stateUnload){ //router mode
return (otherblock.hasItems || otherblock.outputsItems() || otherblock.acceptsItems) &&
return (otherblock.acceptsItems) &&
(notLookingAt(tile, rotation, otherx, othery, otherrot, otherblock) ||
(otherblock instanceof StackConveyor && facing(otherx, othery, otherrot, tile.x, tile.y))) &&
!(world.build(otherx, othery) instanceof StackConveyorEntity && ((StackConveyorEntity)world.build(otherx, othery)).state == stateUnload);