From: Perttu Ahola Date: Wed, 25 Jul 2012 14:10:31 +0000 (+0300) Subject: Add notice in the minimal game X-Git-Tag: 0.4.2-rc1~16 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4535166a3bdcb498e6891d67b3f9a01145c263a8;p=oweals%2Fminetest.git Add notice in the minimal game --- diff --git a/games/minimal/mods/default/init.lua b/games/minimal/mods/default/init.lua index 133b9ed22..ce7f01def 100644 --- a/games/minimal/mods/default/init.lua +++ b/games/minimal/mods/default/init.lua @@ -14,6 +14,14 @@ default = {} -- Load other files dofile(minetest.get_modpath("default").."/mapgen.lua") +-- Set a noticeable inventory formspec for players +minetest.register_on_joinplayer(function(player) + local cb = function(player) + minetest.chat_send_player(player:get_player_name(), "This is the [minimal] \"Minimal Development Test\" game. Use [minetest_game] for the real thing.") + end + minetest.after(2.0, cb, player) +end) + -- -- Tool definition --