This commit is contained in:
Emojigit 2020-08-15 10:13:30 +08:00 committed by GitHub
parent 29f7c6440b
commit f1ae6508e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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