This commit is contained in:
Anuken
2022-11-13 09:35:48 -05:00
parent 7d695784d1
commit 4c51b97667
34 changed files with 266 additions and 257 deletions

View File

@@ -53,6 +53,13 @@ public class LaserTurret extends PowerTurret{
return bullets.any() || isActive() || isShooting();
}
@Override
public void placed(){
super.placed();
reloadCounter = reload;
}
@Override
public void updateTile(){
super.updateTile();

View File

@@ -350,6 +350,7 @@ public class Conveyor extends Block implements Autotiler{
public boolean acceptItem(Building source, Item item){
if(len >= capacity) return false;
Tile facing = Edges.getFacingEdge(source.tile, tile);
if(facing == null) return false;
int direction = Math.abs(facing.relativeTo(tile.x, tile.y) - rotation);
return (((direction == 0) && minitem >= itemSpace) || ((direction % 2 == 1) && minitem > 0.7f)) && !(source.block.rotate && next == source);
}