Move payload blend check to BuildingComp (#6152)

This commit is contained in:
Matthew Peng
2021-10-16 06:49:52 -07:00
committed by GitHub
parent 91acda56c1
commit 7ff9ad7351
2 changed files with 5 additions and 1 deletions

View File

@@ -432,6 +432,10 @@ abstract class BuildingComp implements Posc, Teamc, Healthc, Buildingc, Timerc,
return block.unloadable;
}
public boolean payloadCheck(int conveyorRotation){
return block.rotate && (rotation + 2) % 4 == conveyorRotation;
}
/** Called when an unloader takes an item. */
public void itemTaken(Item item){