Remove spider updates. Unused anyway

This commit is contained in:
Daniel Saukel 2019-02-23 21:59:33 +01:00
parent fc2ffff756
commit dc75a14b6a

View File

@ -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.
*