forked from mtcontrib/mobs_redo
fix self.knock_back true error
This commit is contained in:
parent
2418e2af21
commit
2f1ef11fa3
4
api.lua
4
api.lua
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
mobs = {}
|
mobs = {}
|
||||||
mobs.mod = "redo"
|
mobs.mod = "redo"
|
||||||
mobs.version = "20180331"
|
mobs.version = "20180406"
|
||||||
|
|
||||||
|
|
||||||
-- Intllib
|
-- Intllib
|
||||||
@ -2395,7 +2395,7 @@ local mob_punch = function(self, hitter, tflp, tool_capabilities, dir)
|
|||||||
end) ]]
|
end) ]]
|
||||||
|
|
||||||
-- knock back effect (only on full punch)
|
-- knock back effect (only on full punch)
|
||||||
if self.knock_back > 0
|
if self.knock_back
|
||||||
and tflp >= punch_interval then
|
and tflp >= punch_interval then
|
||||||
|
|
||||||
local v = self.object:getvelocity()
|
local v = self.object:getvelocity()
|
||||||
|
Loading…
Reference in New Issue
Block a user