Removed synthetic accessors / Sector sanity tests
This commit is contained in:
@@ -11,7 +11,7 @@ import java.util.*;
|
||||
public class Tiles implements Iterable<Tile>{
|
||||
public final int width, height;
|
||||
|
||||
private final Tile[] array;
|
||||
final Tile[] array;
|
||||
|
||||
public Tiles(int width, int height){
|
||||
this.array = new Tile[width * height];
|
||||
@@ -87,6 +87,9 @@ public class Tiles implements Iterable<Tile>{
|
||||
private class TileIterator implements Iterator<Tile>{
|
||||
int index = 0;
|
||||
|
||||
TileIterator(){
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasNext(){
|
||||
return index < array.length;
|
||||
|
||||
@@ -31,8 +31,8 @@ public class ForceProjector extends Block{
|
||||
public float basePowerDraw = 0.2f;
|
||||
public @Load("@-top") TextureRegion topRegion;
|
||||
|
||||
private static ForceProjectorEntity paramEntity;
|
||||
private static final Cons<Shielderc> shieldConsumer = trait -> {
|
||||
static ForceProjectorEntity paramEntity;
|
||||
static final Cons<Shielderc> shieldConsumer = trait -> {
|
||||
if(trait.team() != paramEntity.team && Intersector.isInsideHexagon(paramEntity.x, paramEntity.y, paramEntity.realRadius() * 2f, trait.x(), trait.y())){
|
||||
trait.absorb();
|
||||
Fx.absorb.at(trait);
|
||||
|
||||
@@ -25,8 +25,8 @@ public class Conveyor extends Block implements Autotiler{
|
||||
private static final float itemSpace = 0.4f;
|
||||
private static final int capacity = 4;
|
||||
|
||||
private final Vec2 tr1 = new Vec2();
|
||||
private final Vec2 tr2 = new Vec2();
|
||||
final Vec2 tr1 = new Vec2();
|
||||
final Vec2 tr2 = new Vec2();
|
||||
|
||||
public @Load(value = "@-#1-#2", lengths = {7, 4}) TextureRegion[][] regions;
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ import mindustry.world.meta.*;
|
||||
import static mindustry.Vars.*;
|
||||
|
||||
public class RepairPoint extends Block{
|
||||
private static final Rect rect = new Rect();
|
||||
static final Rect rect = new Rect();
|
||||
|
||||
public int timerTarget = timers++;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user