mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-28 21:48:43 +01:00
Fixed: Cave Spider don't attack you in daylight
Signed-off-by: Grafe <flingelfrank@hotmail.com>
This commit is contained in:
parent
c03d57a963
commit
f2c72d9328
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user