Bugfixes from testing session 1

This commit is contained in:
Anuken
2022-04-09 13:03:51 -04:00
parent 22332b53c2
commit 5d79ad9363
8 changed files with 35 additions and 10 deletions
@@ -55,8 +55,6 @@ public class Floor extends Block{
public boolean supportsOverlay = false;
/** shallow water flag used for generation */
public boolean shallow = false;
/** if true, this block cannot be mined by players. useful for annoying things like sand. */
public boolean playerUnmineable = false;
/** Group of blocks that this block does not draw edges on. */
public Block blendGroup = this;
/** Whether this ore generates in maps by default. */
@@ -104,6 +104,13 @@ public class BeamNode extends PowerBlock{
}
}
@Override
public BlockStatus status(){
if(Mathf.equal(power.status, 0f, 0.001f)) return BlockStatus.noInput;
if(Mathf.equal(power.status, 1f, 0.001f)) return BlockStatus.active;
return BlockStatus.noOutput;
}
@Override
public void draw(){
super.draw();