mirror of
https://github.com/mt-mods/xcompat.git
synced 2024-12-22 17:10:18 +01:00
add alias grass -> function
This commit is contained in:
parent
2abe0851a3
commit
a75bfbf2d6
5
init.lua
5
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)
|
||||
|
Loading…
Reference in New Issue
Block a user