Make beds not skip night if nobody is online
authorNovatux <nathanael.courant@laposte.net>
Thu, 14 May 2015 12:41:26 +0000 (14:41 +0200)
committerNovatux <nathanael.courant@laposte.net>
Thu, 14 May 2015 12:41:26 +0000 (14:41 +0200)
mods/beds/functions.lua

index 8cb28483e5912352aec75a4ecafad4b035c2ffea..4c5c7d16fea08d5d7ca1e3fa29e72aebd5d38087 100644 (file)
@@ -34,7 +34,7 @@ local function check_in_beds(players)
                end
        end
 
-       return true
+       return #players > 0
 end
 
 local function lay_down(player, pos, bed_pos, state, skip)