summaryrefslogtreecommitdiff
path: root/api.lua
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2018-03-13 20:33:29 +0000
committerTenPlus1 <kinsellaja@yahoo.com>2018-03-13 20:33:29 +0000
commit763fbee36d0c917c8b81f64021fa21178b1dd7c1 (patch)
tree998195d501bde2e52049948802bd307099c8658c /api.lua
parentd7874dce5021a10f79964afe52e0505d286ddb15 (diff)
fix merge errors
Diffstat (limited to 'api.lua')
-rw-r--r--api.lua10
1 files changed, 4 insertions, 6 deletions
diff --git a/api.lua b/api.lua
index c8b5479..1d29385 100644
--- a/api.lua
+++ b/api.lua
@@ -3,7 +3,7 @@
mobs = {}
mobs.mod = "redo"
-mobs.version = "20180312"
+mobs.version = "20180313"
-- Intllib
@@ -1857,8 +1857,8 @@ local do_states = function(self, dtime)
self.object:settexturemod("")
end
- -- walk right up to player when timer active
- if dist < 1.5 then
+ -- walk right up to player unless the timer is active
+ if self.v_start and (self.stop_to_explode or dist < 1.5) then
set_velocity(self, 0)
else
set_velocity(self, self.run_velocity)
@@ -1870,8 +1870,7 @@ local do_states = function(self, dtime)
set_animation(self, "walk")
end
- -- walk right up to player unless the timer is active
- if self.v_start and (self.stop_to_explode or dist < 1.5) then
+ if self.v_start then
self.timer = self.timer + dtime
self.blinktimer = (self.blinktimer or 0) + dtime
@@ -1899,7 +1898,6 @@ local do_states = function(self, dtime)
if minetest.find_node_near(pos, 1, {"group:water"})
or minetest.is_protected(pos, "") then
- damage_radius = 0
node_break_radius = 0
end