mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-05-21 14:53:16 -04:00
Fix stuff
This commit is contained in:
parent
6681c60bf8
commit
5495801fd0
1 changed files with 2 additions and 2 deletions
|
@ -85,14 +85,14 @@ local function lay_down(player, pos, bed_pos, state, skip)
|
||||||
-- Check if bed is occupied
|
-- Check if bed is occupied
|
||||||
for _, other_pos in pairs(beds.bed_position) do
|
for _, other_pos in pairs(beds.bed_position) do
|
||||||
if vector.distance(bed_pos, other_pos) < 0.1 then
|
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
|
return false
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Check if player is moving
|
-- Check if player is moving
|
||||||
if vector.length(player:get_player_velocity()) > 0.001 then
|
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
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue