diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-11-26 03:40:16 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-11-29 19:13:53 +0200 |
commit | 57a2bd056c6c0e61cd26490a2ca653f5720d60ea (patch) | |
tree | 4d82f62488f142607b466b40db94c202694d5c72 /data/mods | |
parent | 234bf99743f65d4005673defd65aa3e96ddb853f (diff) | |
download | minetest-57a2bd056c6c0e61cd26490a2ca653f5720d60ea.tar.gz minetest-57a2bd056c6c0e61cd26490a2ca653f5720d60ea.tar.bz2 minetest-57a2bd056c6c0e61cd26490a2ca653f5720d60ea.zip |
Exception handling in Lua setting get
Diffstat (limited to 'data/mods')
-rw-r--r-- | data/mods/default/init.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/data/mods/default/init.lua b/data/mods/default/init.lua index c6f039385..8f8188df5 100644 --- a/data/mods/default/init.lua +++ b/data/mods/default/init.lua @@ -1316,7 +1316,8 @@ minetest.register_on_respawnplayer(function(player) end) -- Example setting get -print("max_users = " .. dump(minetest.setting_get("max_users"))) +print("setting max_users = " .. dump(minetest.setting_get("max_users"))) +print("setting asdf = " .. dump(minetest.setting_get("asdf"))) -- -- Done, print some random stuff |