]> git.lizzy.rs Git - Crafter.git/commitdiff
server debug
authoroilboi <47129783+oilboi@users.noreply.github.com>
Thu, 25 Jun 2020 08:56:09 +0000 (04:56 -0400)
committeroilboi <47129783+oilboi@users.noreply.github.com>
Thu, 25 Jun 2020 08:56:09 +0000 (04:56 -0400)
mods/bed/init.lua

index 4fdc505c5cd0ecf44e10cc84cbf219b86b1e4281..f1e2d880a79b189b714ff5da2c04016479c28854 100644 (file)
@@ -110,6 +110,7 @@ local do_sleep = function(player,pos,dir)
 
        local time = minetest.get_timeofday() * 24000
        name = player:get_player_name()
+       minetest.chat_send_all(time)
        if time < time_night.begin and time > time_night.ending then
                minetest.chat_send_player(name, "You can only sleep at night")
                return