mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-24 20:03:45 +01:00
Fix Mobs not taking knockback on the Y-axis
This commit is contained in:
parent
13a9dbed3e
commit
95b0a27213
@ -3091,7 +3091,7 @@ local mob_punch = function(self, hitter, tflp, tool_capabilities, dir)
|
||||
|
||||
self.object:set_velocity({
|
||||
x = dir.x * kb,
|
||||
y = dir.y * kb + up,
|
||||
y = dir.y * kb + up * 2,
|
||||
z = dir.z * kb
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user