Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Fire: Use get_item_group instead of get_node_group
- Loading branch information
Showing
with
1 addition
and
1 deletion.
-
+1
−1
mods/fire/init.lua
|
@@ -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 |
|
|