mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-15 15:41:06 +01:00
remove unuseful code
This commit is contained in:
parent
731dc4947b
commit
8dda13f143
1 changed files with 2 additions and 2 deletions
|
@ -397,9 +397,9 @@ end
|
||||||
-- false otherwise.
|
-- false otherwise.
|
||||||
mcl_spawn.get_bed_spawn_pos = function(player)
|
mcl_spawn.get_bed_spawn_pos = function(player)
|
||||||
local spawn, custom_spawn = nil, false
|
local spawn, custom_spawn = nil, false
|
||||||
if player ~= nil and player:is_player() then
|
if player and player:is_player() then
|
||||||
local attr = player:get_meta():get_string("mcl_beds:spawn")
|
local attr = player:get_meta():get_string("mcl_beds:spawn")
|
||||||
if attr ~= nil and attr ~= "" then
|
if attr and attr ~= "" then
|
||||||
spawn = minetest.string_to_pos(attr)
|
spawn = minetest.string_to_pos(attr)
|
||||||
custom_spawn = true
|
custom_spawn = true
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue