update for new inventory_plus

master
Brett O'Donnell 2012-09-18 17:34:44 +09:30
parent 6d956890b4
commit 3ac901ed18
1 changed files with 1 additions and 3 deletions

View File

@ -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)