fix locked chest to not destroy denied items (minimal game)
authordarkrose <lisa@ltmnet.com>
Sun, 3 Jun 2012 07:59:56 +0000 (17:59 +1000)
committerPerttu Ahola <celeron55@gmail.com>
Sun, 3 Jun 2012 19:31:02 +0000 (22:31 +0300)
games/minimal/mods/default/init.lua

index 643995c9770717c2f37e50f0e03ca59b9032f81c..4468d1e0e7d3fa8c658f9269194ab800437596eb 100644 (file)
@@ -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))