mobs will not attack player in creative mode unless hit 1st

This commit is contained in:
TenPlus1 2017-06-11 09:27:26 +01:00
parent 61f7a06261
commit 6f259cb047

View File

@ -1,9 +1,9 @@
-- Mobs Api (10th June 2017)
-- Mobs Api (11th June 2017)
mobs = {}
mobs.mod = "redo"
mobs.version = "20170610"
mobs.version = "20170611"
-- Intllib
@ -1135,6 +1135,7 @@ local monster_attack = function(self)
if self.type ~= "monster"
or not damage_enabled
or creative
or self.state == "attack"
or day_docile(self) then
return