mirror of
https://github.com/minetest-mods/technic.git
synced 2024-12-22 13:52:31 +01:00
fix chainsaw not working
This commit is contained in:
parent
f6b1d075c2
commit
9bc99a5d04
@ -12,7 +12,7 @@ minetest.register_tool("technic:chainsaw", {
|
|||||||
inventory_image = "technic_chainsaw.png",
|
inventory_image = "technic_chainsaw.png",
|
||||||
stack_max = 1,
|
stack_max = 1,
|
||||||
on_use = function(itemstack, user, pointed_thing)
|
on_use = function(itemstack, user, pointed_thing)
|
||||||
if pointed_thing.type == "node" then
|
if pointed_thing.type ~= "node" then
|
||||||
return itemstack
|
return itemstack
|
||||||
end
|
end
|
||||||
local meta = get_item_meta(itemstack:get_metadata())
|
local meta = get_item_meta(itemstack:get_metadata())
|
||||||
|
Loading…
Reference in New Issue
Block a user