Commit 3ac901ed authored by Brett O'Donnell's avatar Brett O'Donnell
Browse files

update for new inventory_plus

parent 6d956890
......@@ -9,9 +9,6 @@ License: GPLv3
]]--
-- add inventory_plus page
inventory_plus.pages["bags"] = "Bags"
-- get_formspec
local get_formspec = function(player,page)
if page=="bags" then
......@@ -60,6 +57,7 @@ end)
-- register_on_joinplayer
minetest.register_on_joinplayer(function(player)
inventory_plus.register_button(player,"bags","Bags")
local player_inv = player:get_inventory()
local bags_inv = minetest.create_detached_inventory(player:get_player_name().."_bags",{
on_put = function(inv, listname, index, stack, player)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment