update to code task, closes #68.

master
Nathan Salapat 2022-08-10 20:49:54 -05:00
parent 2959b8b8c0
commit 256a8049f1
1 changed files with 1 additions and 0 deletions

View File

@ -45,6 +45,7 @@ minetest.register_node('tasks:code_0', {
local max = meta:get_int('time_max') or 60
local random_number = math.random(min,max)
timer:start(random_number)
minetest.chat_send_player(clicker:get_player_name(), 'No code required now.')
end,
on_timer = function(pos)
local node = minetest.get_node(pos)