summaryrefslogtreecommitdiff
path: root/api.lua
diff options
context:
space:
mode:
Diffstat (limited to 'api.lua')
-rw-r--r--api.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/api.lua b/api.lua
index 8917418..6f6a7ff 100644
--- a/api.lua
+++ b/api.lua
@@ -2473,7 +2473,7 @@ function mobs:register_arrow(name, def)
switch = 0,
arrow = true,
- on_step = function(self, dtime)
+ on_step = def.on_step or function(self, dtime)
self.timer = self.timer + 1