Navigation Menu

Skip to content

Commit

Permalink
Fire: Use get_item_group instead of get_node_group
Browse files Browse the repository at this point in the history
  • Loading branch information
Rui authored and paramat committed Mar 30, 2016
1 parent 4d7dbfc commit 7bbbcbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mods/fire/init.lua
Expand Up @@ -81,7 +81,7 @@ minetest.register_tool("fire:flint_and_steel", {
itemstack:add_wear(1000)
local node_under = minetest.get_node(pt.under).name

if minetest.get_node_group(node_under, "flammable") >= 1 then
if minetest.get_item_group(node_under, "flammable") >= 1 then
if not minetest.is_protected(pt.above, player_name) then
minetest.set_node(pt.above, {name = "fire:basic_flame"})
else
Expand Down

0 comments on commit 7bbbcbf

Please sign in to comment.