From 0c4e58ee2ba815d3408d6f7a9bf886a9a53827d8 Mon Sep 17 00:00:00 2001 From: Leonwang4234 <62972692+Leonwang4234@users.noreply.github.com> Date: Fri, 21 Aug 2020 21:43:09 -0700 Subject: [PATCH] remove push mechanic --- .../src/mindustry/world/blocks/defense/ForceProjector.java | 7 ------- 1 file changed, 7 deletions(-) diff --git a/core/src/mindustry/world/blocks/defense/ForceProjector.java b/core/src/mindustry/world/blocks/defense/ForceProjector.java index 9f0c541dfe..7f16a0d078 100644 --- a/core/src/mindustry/world/blocks/defense/ForceProjector.java +++ b/core/src/mindustry/world/blocks/defense/ForceProjector.java @@ -41,12 +41,6 @@ public class ForceProjector extends Block{ } }; - static final Cons unitPusher = unit -> { - if(unit.team() != paramEntity.team && Intersector.isInsideHexagon(paramEntity.x, paramEntity.y, paramEntity.realRadius() * 2f, unit.x(), unit.y())){ - unit.impulse(Tmp.v3.set(unit).sub(paramEntity.x, paramEntity.y).nor().scl(100f)); - } - }; - public ForceProjector(String name){ super(name); update = true; @@ -151,7 +145,6 @@ public class ForceProjector extends Block{ if(realRadius > 0 && !broken){ paramEntity = this; Groups.bullet.intersect(x - realRadius, y - realRadius, realRadius * 2f, realRadius * 2f, shieldConsumer); - Groups.unit.intersect(x - realRadius, y - realRadius, realRadius * 2f, realRadius * 2f, unitPusher); } }