mirror of
https://codeberg.org/tenplus1/mobs_redo.git
synced 2024-12-25 18:20:20 +01:00
tidy
This commit is contained in:
parent
4d37da6fe6
commit
954565efa2
8
api.lua
8
api.lua
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
-- Mobs Api (21st October 2016)
|
-- Mobs Api (22nd October 2016)
|
||||||
|
|
||||||
mobs = {}
|
mobs = {}
|
||||||
mobs.mod = "redo"
|
mobs.mod = "redo"
|
||||||
@ -1848,9 +1848,6 @@ local mob_punch = function(self, hitter, tflp, tool_capabilities, dir)
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
-- direction error check
|
|
||||||
dir = dir or {x = 0, y = 0, z = 0}
|
|
||||||
|
|
||||||
-- weapon wear
|
-- weapon wear
|
||||||
local weapon = hitter:get_wielded_item()
|
local weapon = hitter:get_wielded_item()
|
||||||
local punch_interval = 1.4
|
local punch_interval = 1.4
|
||||||
@ -1962,6 +1959,9 @@ local mob_punch = function(self, hitter, tflp, tool_capabilities, dir)
|
|||||||
up = 0
|
up = 0
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- direction error check
|
||||||
|
dir = dir or {x = 0, y = 0, z = 0}
|
||||||
|
|
||||||
self.object:setvelocity({
|
self.object:setvelocity({
|
||||||
x = dir.x * kb,
|
x = dir.x * kb,
|
||||||
y = up,
|
y = up,
|
||||||
|
Loading…
Reference in New Issue
Block a user