mirror of
https://github.com/joe7575/techpack.git
synced 2024-11-26 00:53:44 +01:00
Remove tubelib IDs that were used for accessing the cache
This commit is contained in:
parent
9a5ec1a96d
commit
f258dfb2dc
@ -209,7 +209,6 @@ function techpack_warehouse.allow_metadata_inventory_put(self, pos, listname, in
|
||||
if listname == "input" and item_name == stack:get_name() then
|
||||
return math.min(stack:get_count(), self.inv_size - main_stack:get_count())
|
||||
elseif listname == "filter" and item_name == main_stack:get_name() then
|
||||
local number = M(pos):get_string("tubelib_number")
|
||||
return 1
|
||||
elseif listname == "shift" then
|
||||
return stack:get_count()
|
||||
@ -219,7 +218,6 @@ end
|
||||
|
||||
function techpack_warehouse.on_metadata_inventory_put(pos, listname, index, stack, player)
|
||||
if listname == "input" then
|
||||
local number = M(pos):get_string("tubelib_number")
|
||||
minetest.after(0.5, move_to_main, pos, index)
|
||||
end
|
||||
end
|
||||
@ -230,7 +228,6 @@ function techpack_warehouse.allow_metadata_inventory_take(pos, listname, index,
|
||||
end
|
||||
local inv = M(pos):get_inventory()
|
||||
local main_stack = inv:get_stack("main", index)
|
||||
local number = M(pos):get_string("tubelib_number")
|
||||
if listname == "main" then
|
||||
minetest.after(0.1, move_to_player_inv, player:get_player_name(), pos, index)
|
||||
return 0
|
||||
@ -250,7 +247,6 @@ function techpack_warehouse.on_receive_fields(self, pos, formname, fields, playe
|
||||
if minetest.is_protected(pos, player:get_player_name()) then
|
||||
return
|
||||
end
|
||||
local number = M(pos):get_string("tubelib_number")
|
||||
self.State:state_button_event(pos, fields)
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user