@@ -67,7 +67,7 @@ public class Conveyor extends Block implements Autotiler{
|
||||
|
||||
@Override
|
||||
public boolean blends(Tile tile, int rotation, int otherx, int othery, int otherrot, Block otherblock){
|
||||
return (otherblock.outputsItems() || lookingAt(tile, rotation, otherx, othery, otherblock))
|
||||
return (otherblock.outputsItems() || (lookingAt(tile, rotation, otherx, othery, otherblock) && otherblock.hasItems))
|
||||
&& lookingAtEither(tile, rotation, otherx, othery, otherrot, otherblock);
|
||||
}
|
||||
|
||||
|
||||
@@ -105,6 +105,10 @@ public class MassDriver extends Block{
|
||||
Building link = world.build(this.link);
|
||||
boolean hasLink = linkValid();
|
||||
|
||||
if(hasLink){
|
||||
this.link = link.pos();
|
||||
}
|
||||
|
||||
//reload regardless of state
|
||||
if(reload > 0f){
|
||||
reload = Mathf.clamp(reload - edelta() / reloadTime);
|
||||
|
||||
@@ -11,6 +11,7 @@ import mindustry.world.blocks.storage.CoreBlock.*;
|
||||
import mindustry.world.meta.*;
|
||||
|
||||
public class StorageBlock extends Block{
|
||||
|
||||
public StorageBlock(String name){
|
||||
super(name);
|
||||
hasItems = true;
|
||||
|
||||
@@ -4,6 +4,8 @@ package mindustry.world.meta;
|
||||
public enum BlockFlag{
|
||||
/** Enemy core; primary target for all units. */
|
||||
core,
|
||||
/** Vault/container/etc */
|
||||
storage,
|
||||
/** Something that generates power. */
|
||||
generator,
|
||||
/** Any turret. */
|
||||
|
||||
Reference in New Issue
Block a user