12 lines
396 B
Lua
12 lines
396 B
Lua
-- LUALOCALS < ---------------------------------------------------------
|
|
local nodecore, type
|
|
= nodecore, type
|
|
-- LUALOCALS > ---------------------------------------------------------
|
|
|
|
nodecore.register_on_register_item(function(name, 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)
|