Fix stuff

This commit is contained in:
An0n3m0us 2020-02-26 08:58:28 +00:00
parent 6681c60bf8
commit 5495801fd0

View file

@ -85,14 +85,14 @@ local function lay_down(player, pos, bed_pos, state, skip)
-- Check if bed is occupied
for _, other_pos in pairs(beds.bed_position) do
if vector.distance(bed_pos, other_pos) < 0.1 then
minetest.chat_send_player(name, S("This bed is already occupied."))
minetest.chat_send_player(name, S("This bed is already occupied!"))
return false
end
end
-- Check if player is moving
if vector.length(player:get_player_velocity()) > 0.001 then
minetest.chat_send_player(name, S("You have to stop moving before going to bed."))
minetest.chat_send_player(name, S("You have to stop moving before going to bed!"))
return false
end