mirror of
https://github.com/minefaco/stripped_tree.git
synced 2024-10-05 17:23:09 +02:00
fix another luacheck warning i missed
This commit is contained in:
parent
2f40ba74d3
commit
2cb8529aeb
4
init.lua
4
init.lua
@ -63,7 +63,9 @@ for _, axe_name in ipairs(axe_types) do
|
|||||||
local old_node = minetest.get_node(pos)
|
local old_node = minetest.get_node(pos)
|
||||||
minetest.swap_node(pos, {name = "default:stripped_"..n, param2 = old_node.param2})
|
minetest.swap_node(pos, {name = "default:stripped_"..n, param2 = old_node.param2})
|
||||||
itemstack:add_wear(65535 / 299) -- 300 uses
|
itemstack:add_wear(65535 / 299) -- 300 uses
|
||||||
--if not minetest.check_player_privs(user, {creative=true}) then --(It works, but i think that this is not the better way for some reason)
|
|
||||||
|
--(It works, but i think that this is not the better way for some reason)
|
||||||
|
--if not minetest.check_player_privs(user, {creative=true}) then
|
||||||
local inv = user:get_inventory()
|
local inv = user:get_inventory()
|
||||||
inv:add_item("main", {name="default:tree_bark"})
|
inv:add_item("main", {name="default:tree_bark"})
|
||||||
--end
|
--end
|
||||||
|
Loading…
Reference in New Issue
Block a user