From a4ab31b3a11ea9bef812186814fd105931b3c0e8 Mon Sep 17 00:00:00 2001 From: Grizzly Adam <35204361+Grizzly-Adam@users.noreply.github.com> Date: Thu, 8 Mar 2018 12:55:56 -0600 Subject: [PATCH] Fixed Woodpile Bug Wood pile wouldn't accept group:wood_pile items --- woodpile.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/woodpile.lua b/woodpile.lua index d23c720..1024ed1 100644 --- a/woodpile.lua +++ b/woodpile.lua @@ -53,7 +53,7 @@ minetest.register_node("bbq:woodpile", { return inv:is_empty("bbq") end, 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() end return 0 @@ -106,7 +106,7 @@ minetest.register_node("bbq:woodpile_acacia", { return inv:is_empty("bbq") end, 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() end return 0 @@ -159,7 +159,7 @@ minetest.register_node("bbq:woodpile_pine", { return inv:is_empty("bbq") end, 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() end return 0 @@ -212,7 +212,7 @@ minetest.register_node("bbq:woodpile_junglewood", { return inv:is_empty("bbq") end, 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() end return 0 @@ -265,7 +265,7 @@ minetest.register_node("bbq:woodpile_aspen", { return inv:is_empty("bbq") end, 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() end return 0