This commit is contained in:
Anuken
2021-06-06 09:40:32 -04:00
parent 685adeee9d
commit a4895fef8b
2 changed files with 7 additions and 1 deletions

View File

@@ -173,7 +173,7 @@ public class DuctBridge extends Block{
@Override @Override
public boolean acceptItem(Building source, Item item){ public boolean acceptItem(Building source, Item item){
int rel = this.relativeTo(source); int rel = this.relativeToEdge(source.tile);
return items.total() < itemCapacity && rel != rotation && occupied[(rel + 2) % 4] == null; return items.total() < itemCapacity && rel != rotation && occupied[(rel + 2) % 4] == null;
} }
} }

View File

@@ -66,6 +66,12 @@ public class PayloadMassDriver extends PayloadBlock{
config(Integer.class, (PayloadDriverBuild tile, Integer point) -> tile.link = point); config(Integer.class, (PayloadDriverBuild tile, Integer point) -> tile.link = point);
} }
@Override
public void init(){
super.init();
clipSize = Math.max(clipSize, range*2f + tilesize*size);
}
@Override @Override
public void setStats(){ public void setStats(){
super.setStats(); super.setStats();