Initial reconstructor impl
This commit is contained in:
@@ -13,8 +13,6 @@ import mindustry.gen.*;
|
||||
import mindustry.type.*;
|
||||
import mindustry.world.blocks.environment.*;
|
||||
|
||||
import java.io.*;
|
||||
|
||||
import static mindustry.Vars.content;
|
||||
|
||||
@Component
|
||||
|
||||
@@ -223,7 +223,7 @@ abstract class TileComp implements Posc, Teamc, Healthc, Tilec, Timerc, QuadTree
|
||||
}
|
||||
|
||||
public float rotdeg(){
|
||||
return tile.rotation() * 90;
|
||||
return tile.rotdeg();
|
||||
}
|
||||
|
||||
public int rotation(){
|
||||
@@ -704,7 +704,7 @@ abstract class TileComp implements Posc, Teamc, Healthc, Tilec, Timerc, QuadTree
|
||||
}
|
||||
|
||||
public void draw(){
|
||||
Draw.rect(block.region, x, y, block.rotate ? rotation() * 90 : 0);
|
||||
Draw.rect(block.region, x, y, block.rotate ? rotdeg() : 0);
|
||||
}
|
||||
|
||||
public void drawLight(){
|
||||
|
||||
Reference in New Issue
Block a user