mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-28 13:53:45 +01:00
Change mcl_mobs to enable knockback in y direction
This commit is contained in:
parent
92ab90fd1b
commit
cdea2eeabf
@ -2730,7 +2730,7 @@ local mob_punch = function(self, hitter, tflp, tool_capabilities, dir)
|
||||
|
||||
self.object:set_velocity({
|
||||
x = dir.x * kb,
|
||||
y = up,
|
||||
y = dir.y * kb + up,
|
||||
z = dir.z * kb
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user