Fixed: Cave Spider don't attack you in daylight

Signed-off-by: Grafe <flingelfrank@hotmail.com>
This commit is contained in:
Grafe 2013-05-05 03:09:15 +02:00
parent c03d57a963
commit f2c72d9328

View File

@ -225,7 +225,7 @@ public class GameWorld {
for (GameWorld gworld : gworlds) { for (GameWorld gworld : gworlds) {
// Update Spiders // Update Spiders
for (LivingEntity mob : gworld.world.getLivingEntities()) { for (LivingEntity mob : gworld.world.getLivingEntities()) {
if (mob.getType() == EntityType.SPIDER) { if (mob.getType() == EntityType.SPIDER || mob.getType() == EntityType.CAVE_SPIDER) {
Spider spider = (Spider) mob; Spider spider = (Spider) mob;
if (spider.getTarget() != null) { if (spider.getTarget() != null) {
if (spider.getTarget().getType() == EntityType.PLAYER) { if (spider.getTarget().getType() == EntityType.PLAYER) {