From: darkrose Date: Sun, 3 Jun 2012 07:59:56 +0000 (+1000) Subject: fix locked chest to not destroy denied items (minimal game) X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=3f18e9a2dabb06808131eb639caeff46116c8c27;p=zefram%2Fminetest%2Fminetest_engine.git fix locked chest to not destroy denied items (minimal game) --- diff --git a/games/minimal/mods/default/init.lua b/games/minimal/mods/default/init.lua index 643995c9..4468d1e0 100644 --- a/games/minimal/mods/default/init.lua +++ b/games/minimal/mods/default/init.lua @@ -1222,7 +1222,7 @@ minetest.register_node("default:chest_locked", { " tried to access a locked chest belonging to ".. meta:get_string("owner").." at ".. minetest.pos_to_string(pos)) - return + return stack end minetest.log("action", player:get_player_name().. " moves stuff to locked chest at "..minetest.pos_to_string(pos))