Bugfixes from testing session 1
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user