mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-24 19:45:43 +01:00
Remove spider updates. Unused anyway
This commit is contained in:
parent
fc2ffff756
commit
dc75a14b6a
@ -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.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user