From dc75a14b6ae28a930cc164f522b9885275a683ce Mon Sep 17 00:00:00 2001 From: Daniel Saukel Date: Sat, 23 Feb 2019 21:59:33 +0100 Subject: [PATCH] Remove spider updates. Unused anyway --- .../erethon/dungeonsxl/world/DGameWorld.java | 27 ------------------- 1 file changed, 27 deletions(-) diff --git a/src/main/java/de/erethon/dungeonsxl/world/DGameWorld.java b/src/main/java/de/erethon/dungeonsxl/world/DGameWorld.java index c34bcac1..ffca47cb 100644 --- a/src/main/java/de/erethon/dungeonsxl/world/DGameWorld.java +++ b/src/main/java/de/erethon/dungeonsxl/world/DGameWorld.java @@ -494,33 +494,6 @@ public class DGameWorld extends DInstanceWorld { worlds.removeInstance(this); } - /** - * Ongoing updates - */ - public void update() { - if (getWorld() == null) { - return; - } - - // Update Spiders - for (LivingEntity mob : getWorld().getLivingEntities()) { - if (mob.getType() == EntityType.SPIDER || mob.getType() == EntityType.CAVE_SPIDER) { - Spider spider = (Spider) mob; - if (spider.getTarget() != null) { - if (spider.getTarget().getType() == EntityType.PLAYER) { - continue; - } - } - - for (Entity player : spider.getNearbyEntities(10, 10, 10)) { - if (player.getType() == EntityType.PLAYER) { - spider.setTarget((LivingEntity) player); - } - } - } - } - } - /** * Handles what happens when a player breaks a block. *