missions/migrate.lua
2018-07-26 08:26:55 +02:00

9 lines
273 B
Lua

missions.migrate_mission_block = function(pos, meta)
local inv = meta:get_inventory()
if inv:get_size("main") ~= 8 then
minetest.log("info", "[missions] Migrated mission-block inventory (v1) at pos: " .. minetest.pos_to_string(pos))
inv:set_size("main", 8)
end
end