1
0
forked from MTSR/BBQ

Fixed Woodpile Bug

Wood pile wouldn't accept group:wood_pile items
This commit is contained in:
Grizzly Adam 2018-03-08 12:55:56 -06:00 committed by GitHub
parent e5841571ae
commit a4ab31b3a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,7 +53,7 @@ minetest.register_node("bbq:woodpile", {
return inv:is_empty("bbq") return inv:is_empty("bbq")
end, end,
allow_metadata_inventory_put = function(pos, listname, index, stack, player) allow_metadata_inventory_put = function(pos, listname, index, stack, player)
if minetest.get_item_group(stack:get_name(), "woodpile") ~= 0 then if minetest.get_item_group(stack:get_name(), "wood_pile") ~= 0 then
return stack:get_count() return stack:get_count()
end end
return 0 return 0
@ -106,7 +106,7 @@ minetest.register_node("bbq:woodpile_acacia", {
return inv:is_empty("bbq") return inv:is_empty("bbq")
end, end,
allow_metadata_inventory_put = function(pos, listname, index, stack, player) allow_metadata_inventory_put = function(pos, listname, index, stack, player)
if minetest.get_item_group(stack:get_name(), "woodpile") ~= 0 then if minetest.get_item_group(stack:get_name(), "wood_pile") ~= 0 then
return stack:get_count() return stack:get_count()
end end
return 0 return 0
@ -159,7 +159,7 @@ minetest.register_node("bbq:woodpile_pine", {
return inv:is_empty("bbq") return inv:is_empty("bbq")
end, end,
allow_metadata_inventory_put = function(pos, listname, index, stack, player) allow_metadata_inventory_put = function(pos, listname, index, stack, player)
if minetest.get_item_group(stack:get_name(), "woodpile") ~= 0 then if minetest.get_item_group(stack:get_name(), "wood_pile") ~= 0 then
return stack:get_count() return stack:get_count()
end end
return 0 return 0
@ -212,7 +212,7 @@ minetest.register_node("bbq:woodpile_junglewood", {
return inv:is_empty("bbq") return inv:is_empty("bbq")
end, end,
allow_metadata_inventory_put = function(pos, listname, index, stack, player) allow_metadata_inventory_put = function(pos, listname, index, stack, player)
if minetest.get_item_group(stack:get_name(), "woodpile") ~= 0 then if minetest.get_item_group(stack:get_name(), "wood_pile") ~= 0 then
return stack:get_count() return stack:get_count()
end end
return 0 return 0
@ -265,7 +265,7 @@ minetest.register_node("bbq:woodpile_aspen", {
return inv:is_empty("bbq") return inv:is_empty("bbq")
end, end,
allow_metadata_inventory_put = function(pos, listname, index, stack, player) allow_metadata_inventory_put = function(pos, listname, index, stack, player)
if minetest.get_item_group(stack:get_name(), "woodpile") ~= 0 then if minetest.get_item_group(stack:get_name(), "wood_pile") ~= 0 then
return stack:get_count() return stack:get_count()
end end
return 0 return 0