summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLogicParrot <LogicParrot@users.noreply.github.com>2017-09-02 18:38:14 +0200
committerLogicParrot <LogicParrot@users.noreply.github.com>2017-09-02 18:38:14 +0200
commit3d0b91eda893512ec1af1cf7b0d3af4d4dd210a6 (patch)
treec6c3de79ecf56a38d4f4248171db0eece7caadd0
parentMany mobs reimplemented (diff)
downloadcuberite-3d0b91eda893512ec1af1cf7b0d3af4d4dd210a6.tar
cuberite-3d0b91eda893512ec1af1cf7b0d3af4d4dd210a6.tar.gz
cuberite-3d0b91eda893512ec1af1cf7b0d3af4d4dd210a6.tar.bz2
cuberite-3d0b91eda893512ec1af1cf7b0d3af4d4dd210a6.tar.lz
cuberite-3d0b91eda893512ec1af1cf7b0d3af4d4dd210a6.tar.xz
cuberite-3d0b91eda893512ec1af1cf7b0d3af4d4dd210a6.tar.zst
cuberite-3d0b91eda893512ec1af1cf7b0d3af4d4dd210a6.zip
-rw-r--r--src/Mobs/Spider.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Mobs/Spider.cpp b/src/Mobs/Spider.cpp
index 15c8d5769..845bc145b 100644
--- a/src/Mobs/Spider.cpp
+++ b/src/Mobs/Spider.cpp
@@ -9,7 +9,8 @@
bool AggressiveAtNightFunction(cBehaviorAggressive & a_Behavior, cMonster & a_Monster)
{
-
+ return
+ !((Chunk->GetSkyLightAltered(Rel.x, Rel.y, Rel.z) > 11) || (Chunk->GetBlockLight(Rel.x, Rel.y, Rel.z) > 11))
}
cSpider::cSpider(void) :