mirror of
https://codeberg.org/tenplus1/mobs_redo.git
synced 2024-12-24 17:50:21 +01:00
mobs standing on "ignore" just wait for world to load around them
This commit is contained in:
parent
f7798e1b29
commit
9f62234e42
8
api.lua
8
api.lua
@ -1,5 +1,5 @@
|
||||
|
||||
-- Mobs Api (27th December 2016)
|
||||
-- Mobs Api (29th December 2016)
|
||||
|
||||
mobs = {}
|
||||
mobs.mod = "redo"
|
||||
@ -517,6 +517,12 @@ do_env_damage = function(self)
|
||||
self.standing_in = node_ok(pos, "air").name
|
||||
--print ("standing in " .. self.standing_in)
|
||||
|
||||
-- don't fall when on ignore, just stand still
|
||||
if self.standing_in == "ignore" then
|
||||
self.object:setvelocity({x = 0, y = 0, z = 0})
|
||||
--print ("--- stopping on ignore")
|
||||
end
|
||||
|
||||
if self.water_damage ~= 0
|
||||
or self.lava_damage ~= 0 then
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user