mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-05-21 14:53:16 -04:00
Remove overriding knockback function
This commit is contained in:
parent
5495801fd0
commit
bf848fbe41
1 changed files with 0 additions and 8 deletions
|
@ -252,14 +252,6 @@ minetest.register_on_dieplayer(function(player)
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
local old_calculate_knockback = minetest.calculate_knockback
|
|
||||||
function minetest.calculate_knockback(player, ...)
|
|
||||||
if beds.player[player:get_player_name()] then
|
|
||||||
return 0
|
|
||||||
end
|
|
||||||
return old_calculate_knockback(player, ...)
|
|
||||||
end
|
|
||||||
|
|
||||||
minetest.register_on_player_receive_fields(function(player, formname, fields)
|
minetest.register_on_player_receive_fields(function(player, formname, fields)
|
||||||
if formname ~= "beds_form" then
|
if formname ~= "beds_form" then
|
||||||
return
|
return
|
||||||
|
|
Loading…
Add table
Reference in a new issue