"grabage struct"
This commit is contained in:
@@ -60,7 +60,7 @@ public class BuildBlock extends Block{
|
||||
public static void onConstructFinish(Tile tile, Block block, int builderID, byte rotation, Team team, boolean skipConfig){
|
||||
if(tile == null) return;
|
||||
float healthf = tile.entity.healthf();
|
||||
tile.setBlock(block, team, (int)rotation);
|
||||
tile.setBlock(block, team, rotation);
|
||||
tile.entity.health(block.health * healthf);
|
||||
//last builder was this local client player, call placed()
|
||||
if(!headless && builderID == player.unit().id()){
|
||||
|
||||
@@ -27,7 +27,7 @@ public class Incinerator extends Block{
|
||||
|
||||
@Override
|
||||
public void updateTile(){
|
||||
if(consValid()){
|
||||
if(consValid() && efficiency() > 0.9f){
|
||||
heat = Mathf.lerpDelta(heat, 1f, 0.04f);
|
||||
}else{
|
||||
heat = Mathf.lerpDelta(heat, 0f, 0.02f);
|
||||
|
||||
Reference in New Issue
Block a user