mirror of
https://github.com/minetest-mods/technic.git
synced 2025-07-04 09:10:38 +02:00
Tools don't wear in creative mode v2
- Removed cans (will add again per request) - Added creative check to global namespace (checking only once as requested by VanessaE)
This commit is contained in:
committed by
Vanessa Ezekowitz
parent
19f74d11ba
commit
b8c9028681
@ -63,7 +63,7 @@ local function screwdriver_handler(itemstack, user, pointed_thing, mode)
|
||||
node.param2 = preservePart + rotationPart
|
||||
minetest.swap_node(pos, node)
|
||||
|
||||
if not minetest.setting_getbool("creative_mode") then
|
||||
if not technic.creative_mode then
|
||||
meta1.charge = meta1.charge - 100
|
||||
itemstack:set_metadata(minetest.serialize(meta1))
|
||||
technic.set_RE_wear(itemstack, meta1.charge, sonic_screwdriver_max_charge)
|
||||
|
Reference in New Issue
Block a user