From a75bfbf2d67ae10f9d0c02a0ab2a0b326c82e9f4 Mon Sep 17 00:00:00 2001 From: unknown <24964441+wsor4035@users.noreply.github.com> Date: Tue, 18 Jan 2022 22:38:26 -0500 Subject: [PATCH] add alias grass -> function --- init.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/init.lua b/init.lua index 8445fee..122b4c1 100644 --- a/init.lua +++ b/init.lua @@ -90,6 +90,11 @@ function sound_api.node_sound_dirt_defaults(table) end end +--return dirt as some games use dirt vs grass +function sound_api.node_sound_grass_defaults(table) + return sound_api.node_sound_dirt_defaults(table) +end + function sound_api.node_sound_sand_defaults(table) if minetest.get_modpath("default") then return default.node_sound_sand_defaults(table)