diff options
author | sfan5 <sfan5@live.de> | 2017-05-10 15:29:21 +0200 |
---|---|---|
committer | Loïc Blot <nerzhul@users.noreply.github.com> | 2017-05-10 15:29:21 +0200 |
commit | 071e114ffa945522a7a9acc3259427166992d5ee (patch) | |
tree | b76be5cdc27e9a8d9b58ff15f80691e012afa702 /games/minimal/mods/default/init.lua | |
parent | 6945f807abd789e0f522351e5e790ff2afced233 (diff) | |
download | minetest-071e114ffa945522a7a9acc3259427166992d5ee.tar.gz minetest-071e114ffa945522a7a9acc3259427166992d5ee.tar.bz2 minetest-071e114ffa945522a7a9acc3259427166992d5ee.zip |
Private nodemeta (#5702)
* Private node metadata that isn't sent to the client
Diffstat (limited to 'games/minimal/mods/default/init.lua')
-rw-r--r-- | games/minimal/mods/default/init.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/games/minimal/mods/default/init.lua b/games/minimal/mods/default/init.lua index 64970f922..7d26f38a0 100644 --- a/games/minimal/mods/default/init.lua +++ b/games/minimal/mods/default/init.lua @@ -1228,6 +1228,8 @@ minetest.register_node("default:chest_locked", { meta:set_string("owner", "") local inv = meta:get_inventory() inv:set_size("main", 8*4) + -- this is not really the intended usage but works for testing purposes: + meta:mark_as_private("owner") end, can_dig = function(pos,player) local meta = minetest.get_meta(pos); |