From 0e4ba14bc16a2799ff67cdaabe7d7a3003d28cc5 Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Fri, 6 May 2016 11:38:43 +0100 Subject: Added custom on_step for mob arrows (thx npxcoot) --- api.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'api.lua') 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 -- cgit v1.2.3