Avoid "leaking" creative inventories to other players
authorsfan5 <sfan5@live.de>
Sun, 27 Nov 2016 11:15:52 +0000 (12:15 +0100)
committersfan5 <sfan5@live.de>
Mon, 28 Nov 2016 12:43:02 +0000 (13:43 +0100)
mods/creative/inventory.lua

index 177933f330c649ebbeb745d222a71c900d30a29b..8dedffc48ed6c7f860e0877c89f3860879445b2b 100644 (file)
@@ -32,7 +32,7 @@ function creative.init_creative_inventory(player)
                                minetest.log("action", player_name .. " takes " .. stack:get_name().. " from creative inventory")
                        end
                end,
-       })
+       }, player_name)
 
        creative.update_creative_inventory(player_name, minetest.registered_items)
 end