Fixed #2346
This commit is contained in:
@@ -72,6 +72,7 @@ abstract class UnitComp implements Healthc, Physicsc, Hitboxc, Statusc, Teamc, I
|
||||
@Override
|
||||
public double sense(LAccess sensor){
|
||||
if(sensor == LAccess.totalItems) return stack().amount;
|
||||
if(sensor == LAccess.rotation) return rotation;
|
||||
if(sensor == LAccess.health) return health;
|
||||
if(sensor == LAccess.x) return x;
|
||||
if(sensor == LAccess.y) return y;
|
||||
|
||||
@@ -53,6 +53,7 @@ public class BuildPlan{
|
||||
|
||||
}
|
||||
|
||||
/** Transforms the internal position of this config using the specified function, and return the result. */
|
||||
public static Object pointConfig(Block block, Object config, Cons<Point2> cons){
|
||||
if(config instanceof Point2){
|
||||
config = ((Point2)config).cpy();
|
||||
@@ -71,8 +72,7 @@ public class BuildPlan{
|
||||
return config;
|
||||
}
|
||||
|
||||
/** If this requests's config is a Point2 or an array of Point2s, this returns a copy of them for transformation.
|
||||
* Otherwise does nothing. */
|
||||
/** Transforms the internal position of this config using the specified function. */
|
||||
public void pointConfig(Cons<Point2> cons){
|
||||
this.config = pointConfig(block, this.config, cons);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user