a guest Jan 27th, 2020 5 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- local old_calculate_knockback = minetest.calculate_knockback
- function minetest.calculate_knockback(player, hitter, time_from_last_punch, tool_capabilities, dir, distance, damage)
- if beds.player[player:get_player_name()] then
- return 0
- return old_calculate_knockback(player, hitter, time_from_last_punch, tool_capabilities, dir, distance, damage)
RAW Paste Data