Untested support for JSON planets
This commit is contained in:
@@ -20,7 +20,7 @@ import static mindustry.Vars.*;
|
||||
|
||||
public class RegenProjector extends Block{
|
||||
private static final IntSet taken = new IntSet();
|
||||
//map ID to mend amount
|
||||
//map building pos to mend amount (TODO just use buildings as keys? no lookup)
|
||||
private static final IntFloatMap mendMap = new IntFloatMap();
|
||||
private static long lastUpdateFrame = -1;
|
||||
|
||||
|
||||
@@ -135,6 +135,14 @@ public class UnitPayload implements Payload{
|
||||
//TODO should not happen
|
||||
if(unit.type == null) return;
|
||||
|
||||
//TODO this would be more accurate but has all sorts of associated problems
|
||||
if(false){
|
||||
unit.elevation = 0f;
|
||||
//avoids drawing mining or building
|
||||
unit.type.draw(unit);
|
||||
return;
|
||||
}
|
||||
|
||||
unit.type.drawSoftShadow(unit);
|
||||
Draw.rect(unit.type.fullIcon, unit.x, unit.y, unit.rotation - 90);
|
||||
unit.type.drawCell(unit);
|
||||
|
||||
Reference in New Issue
Block a user