Skip to content

Instantly share code, notes, and snippets.

@rubenwardy
Created January 27, 2020 19:00
Show Gist options
  • Save rubenwardy/723c07b28d964008c4d2c4ff3c28975c to your computer and use it in GitHub Desktop.
Save rubenwardy/723c07b28d964008c4d2c4ff3c28975c to your computer and use it in GitHub Desktop.
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment