Fix crash when a player happens to join the server quicker than the creative inventory filler is called

This commit is contained in:
Perttu Ahola 2012-08-12 17:03:05 +03:00
parent 32ee20ebe7
commit 61a9bb2b47

@ -1,6 +1,7 @@
-- minetest/creative/init.lua -- minetest/creative/init.lua
local creative_inventory = {} local creative_inventory = {}
creative_inventory.creative_inventory_size = 0
-- Create detached creative inventory after loading all mods -- Create detached creative inventory after loading all mods
minetest.after(0, function() minetest.after(0, function()