Fixed #7634
This commit is contained in:
@@ -16,11 +16,8 @@ public class EntityCollisions{
|
|||||||
private static final float seg = 1f;
|
private static final float seg = 1f;
|
||||||
|
|
||||||
//tile collisions
|
//tile collisions
|
||||||
private Rect tmp = new Rect();
|
private Vec2 vector = new Vec2(), l1 = new Vec2();
|
||||||
private Vec2 vector = new Vec2();
|
private Rect r1 = new Rect(), r2 = new Rect(), tmp = new Rect();
|
||||||
private Vec2 l1 = new Vec2();
|
|
||||||
private Rect r1 = new Rect();
|
|
||||||
private Rect r2 = new Rect();
|
|
||||||
|
|
||||||
//entity collisions
|
//entity collisions
|
||||||
private Seq<Hitboxc> arrOut = new Seq<>(Hitboxc.class);
|
private Seq<Hitboxc> arrOut = new Seq<>(Hitboxc.class);
|
||||||
|
|||||||
@@ -1020,7 +1020,7 @@ public class UnitType extends UnlockableContent{
|
|||||||
//find reconstructor
|
//find reconstructor
|
||||||
var rec = (Reconstructor)content.blocks().find(b -> b instanceof Reconstructor re && re.upgrades.contains(u -> u[1] == this));
|
var rec = (Reconstructor)content.blocks().find(b -> b instanceof Reconstructor re && re.upgrades.contains(u -> u[1] == this));
|
||||||
|
|
||||||
if(rec != null && Structs.find(rec.consumers, i -> i instanceof ConsumeItems) instanceof ConsumeItems ci){
|
if(rec != null && rec.findConsumer(i -> i instanceof ConsumeItems) instanceof ConsumeItems ci){
|
||||||
if(prevReturn != null){
|
if(prevReturn != null){
|
||||||
prevReturn[0] = rec.upgrades.find(u -> u[1] == this)[0];
|
prevReturn[0] = rec.upgrades.find(u -> u[1] == this)[0];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user