diff --git a/README.md b/README.md old mode 100644 new mode 100755 diff --git a/depends.txt b/depends.txt old mode 100644 new mode 100755 diff --git a/init.lua b/init.lua old mode 100644 new mode 100755 index 9f17f83..071f8b8 --- a/init.lua +++ b/init.lua @@ -22,12 +22,12 @@ if( minetest.get_modpath( 'pipeworks' )) then tubedevice = 1, tubedevice_receiver = 1 }; chesttools.chest_add.tube = { insert_object = function(pos, node, stack, direction) - local meta = minetest.env:get_meta(pos) + local meta = minetest.get_meta(pos) local inv = meta:get_inventory() return inv:add_item("main", stack) end, can_insert = function(pos, node, stack, direction) - local meta = minetest.env:get_meta(pos) + local meta = minetest.get_meta(pos) local inv = meta:get_inventory() return inv:room_for_item("main", stack) end, @@ -128,7 +128,7 @@ chesttools.on_receive_fields = function(pos, formname, fields, player) selected = 'main'; end local inv_list = 'main'; - if( selected == 'main' ) then + if( selected == 'main' ) then inv_list = 'main'; elseif( selected == 'craft' ) then inv_list = 'craft'; @@ -454,15 +454,15 @@ minetest.register_node( 'chesttools:shared_chest', { local name = user:get_player_name(); local pos = minetest.get_pointed_thing_position( pointed_thing, mode ); - local node = minetest.env:get_node_or_nil( pos ); + local node = minetest.get_node_or_nil( pos ); if( node == nil or not( node.name )) then return nil; end - if( node.name=='default:chest' - or node.name=='default:chest_locked' - or node.name=='chesttools:shared_chest') then + if( node.name=='default:chest' + or node.name=='default:chest_locked' + or node.name=='chesttools:shared_chest') then local formspec = "size[8,4]".. "label[2,0.4;Change chest type:]".. @@ -489,7 +489,7 @@ minetest.register_node( 'chesttools:shared_chest', { formspec = formspec..'item_image[5,1;1.5,1.5;chesttools:shared_chest]'.. 'label[5,2.5;shared]'; end - minetest.show_formspec( name, "chesttools:update", formspec ); + minetest.show_formspec( name, "chesttools:update", formspec ); end return nil; end, diff --git a/textures/chesttools_blue_chest_lock.png b/textures/chesttools_blue_chest_lock.png old mode 100644 new mode 100755 diff --git a/textures/chesttools_blue_chest_side.png b/textures/chesttools_blue_chest_side.png old mode 100644 new mode 100755 diff --git a/textures/chesttools_blue_chest_top.png b/textures/chesttools_blue_chest_top.png old mode 100644 new mode 100755 index 5596ffb..5eed8c1 Binary files a/textures/chesttools_blue_chest_top.png and b/textures/chesttools_blue_chest_top.png differ