1
0
mirror of https://github.com/minetest/minetest_game.git synced 2024-11-11 20:40:24 +01:00

Fire: Use get_item_group instead of get_node_group

This commit is contained in:
Rui 2016-03-30 12:32:53 +09:00 committed by paramat
parent 4d7dbfc826
commit 7bbbcbf7b0

View File

@ -81,7 +81,7 @@ minetest.register_tool("fire:flint_and_steel", {
itemstack:add_wear(1000) itemstack:add_wear(1000)
local node_under = minetest.get_node(pt.under).name 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 if not minetest.is_protected(pt.above, player_name) then
minetest.set_node(pt.above, {name = "fire:basic_flame"}) minetest.set_node(pt.above, {name = "fire:basic_flame"})
else else