From 5c31009495d45a09ae2ab84f8a40675d7fb9e45b Mon Sep 17 00:00:00 2001 From: Patrick 'Quezler' Mounier Date: Wed, 1 Jan 2020 20:54:29 +0100 Subject: [PATCH] Remove unused alteration --- core/src/mindustry/entities/Units.java | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/core/src/mindustry/entities/Units.java b/core/src/mindustry/entities/Units.java index a26d70ff11..67fe01dc9e 100644 --- a/core/src/mindustry/entities/Units.java +++ b/core/src/mindustry/entities/Units.java @@ -68,22 +68,6 @@ public class Units{ return boolResult; } - /** Returns whether there are any entities on this tile. */ - public static void allEntities(Tile tile, Cons cons){ - float size = tile.block().size * tilesize; - allEntities(tile.drawx() - size/2f, tile.drawy() - size/2f, size, size, cons); - } - - public static void allEntities(float x, float y, float width, float height, Cons cons){ - nearby(x, y, width, height, unit -> { - if(!unit.isFlying()){ - unit.hitbox(hitrect); - - if(hitrect.overlaps(x, y, width, height)) cons.get(unit); - } - }); - } - /** Returns the neareset damaged tile. */ public static TileEntity findDamagedTile(Team team, float x, float y){ Tile tile = Geometry.findClosest(x, y, indexer.getDamaged(team));