nodecore-cd2025/mods/nc_api/item_tool_sounds.lua
Aaron Suen 39dea8a2ae MAJOR: Code quality audit using luacheck.
- Removed lots of unused variables, a few shadowed identifiers.
- Removed a few sections of dead code.
2019-08-31 09:26:53 -04:00

12 lines
381 B
Lua

-- LUALOCALS < ---------------------------------------------------------
local nodecore
= nodecore
-- LUALOCALS > ---------------------------------------------------------
nodecore.register_on_register_item(function(_, def)
if def.type == "tool" then
def.sound = def.sound or {}
def.sound.breaks = def.sound.breaks or {name = "nc_api_toolbreak", gain = 1}
end
end)