diff options
author | TenPlus1 <kinsellaja@yahoo.com> | 2017-05-27 21:29:46 +0100 |
---|---|---|
committer | TenPlus1 <kinsellaja@yahoo.com> | 2017-05-27 21:29:46 +0100 |
commit | d6ff2829178418fda28a2060da378b4e09be88ac (patch) | |
tree | 1e9ba8bda7147ec2369fa752a91ca9f2566f3c74 /mount.lua | |
parent | ff4dfe4b4dbd5f5e58f0bfdd0d2cd34bfe9d144f (diff) |
localised functions, mobs floats on water only, damage_per_sec nodes hurt mobs
Diffstat (limited to 'mount.lua')
-rw-r--r-- | mount.lua | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -241,7 +241,7 @@ function mobs.drive(entity, moving_anim, stand_anim, can_fly, dtime) if entity.v == 0 and velo.x == 0 and velo.y == 0 and velo.z == 0 then if stand_anim then - set_animation(entity, stand_anim) + mobs:set_animation(entity, stand_anim) end return @@ -249,7 +249,7 @@ function mobs.drive(entity, moving_anim, stand_anim, can_fly, dtime) -- set moving animation if moving_anim then - set_animation(entity, moving_anim) + mobs:set_animation(entity, moving_anim) end -- Stop! @@ -429,9 +429,9 @@ function mobs.fly(entity, dtime, speed, shoots, arrow, moving_anim, stand_anim) -- change animation if stopped if velo.x == 0 and velo.y == 0 and velo.z == 0 then - set_animation(entity, stand_anim) + mobs:set_animation(entity, stand_anim) else -- moving animation - set_animation(entity, moving_anim) + mobs:set_animation(entity, moving_anim) end end |