Advertisement
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
- end
- return old_calculate_knockback(player, hitter, time_from_last_punch, tool_capabilities, dir, distance, damage)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement