mirror of
https://git.minetest.org/Emojigit/technic_grass_clean.git
synced 2024-12-21 07:45:41 +01:00
Fix issue #1
This commit is contained in:
parent
29f7c6440b
commit
f1ae6508e7
2
init.lua
2
init.lua
@ -242,7 +242,7 @@ minetest.register_tool("technic_grass_clean:grass_cleaner", {
|
|||||||
-- chainsaw will stop after digging a number of nodes
|
-- chainsaw will stop after digging a number of nodes
|
||||||
meta.charge = chainsaw_dig(pointed_thing.under, meta.charge)
|
meta.charge = chainsaw_dig(pointed_thing.under, meta.charge)
|
||||||
if not technic.creative_mode then
|
if not technic.creative_mode then
|
||||||
technic.set_RE_wear(itemstack, meta.charge, chainsaw_max_charge)
|
technic.set_RE_wear(itemstack, meta.charge, grassc_max_charge)
|
||||||
itemstack:set_metadata(minetest.serialize(meta))
|
itemstack:set_metadata(minetest.serialize(meta))
|
||||||
end
|
end
|
||||||
return itemstack
|
return itemstack
|
||||||
|
Loading…
Reference in New Issue
Block a user