Beds: Fix formspec size, no prepend
authorSmallJoker <mk939@ymail.com>
Sat, 26 Jan 2019 12:55:39 +0000 (13:55 +0100)
committerSmallJoker <mk939@ymail.com>
Sat, 26 Jan 2019 13:00:01 +0000 (14:00 +0100)
mods/beds/functions.lua
mods/beds/init.lua

index 18d96e77a2bde9e13f62fa60ba4ed51463c6f4ab..bf7bf90edde60607f4aca8806be1febaa499f5c6 100644 (file)
@@ -109,12 +109,12 @@ local function update_formspecs(finished)
        local is_majority = (ges / 2) < player_in_bed
 
        if finished then
-               form_n = beds.formspec .. "label[2.7,11; Good morning.]"
+               form_n = beds.formspec .. "label[2.7,9; Good morning.]"
        else
-               form_n = beds.formspec .. "label[2.2,11;" .. tostring(player_in_bed) ..
+               form_n = beds.formspec .. "label[2.2,9;" .. tostring(player_in_bed) ..
                        " of " .. tostring(ges) .. " players are in bed]"
                if is_majority and is_night_skip_enabled() then
-                       form_n = form_n .. "button_exit[2,8;4,0.75;force;Force night skip]"
+                       form_n = form_n .. "button_exit[2,6;4,0.75;force;Force night skip]"
                end
        end
 
index 6c4e0819b7742a864ac595ef3b480cfc5764360d..5a3959cbe00ca8a40e4a3d0087dd0d279616a119 100644 (file)
@@ -4,9 +4,10 @@ beds.bed_position = {}
 beds.pos = {}
 beds.spawn = {}
 
-beds.formspec = "size[8,15;true]" ..
-       "bgcolor[#080808BB; true]" ..
-       "button_exit[2,12;4,0.75;leave;Leave Bed]"
+beds.formspec = "size[8,11;true]" ..
+       "no_prepend[]" ..
+       "bgcolor[#080808BB;true]" ..
+       "button_exit[2,10;4,0.75;leave;Leave Bed]"
 
 local modpath = minetest.get_modpath("beds")