forked from mtcontrib/3d_armor
Shields: Add option to disable sound effects
This commit is contained in:
@ -8,9 +8,11 @@ if minetest.global_exists("intllib") then
|
||||
S = intllib.Getter()
|
||||
end
|
||||
end
|
||||
|
||||
local disable_sounds = minetest.settings:get_bool("shields_disable_sounds")
|
||||
local use_moreores = minetest.get_modpath("moreores")
|
||||
local function play_sound_effect(player, name)
|
||||
if player then
|
||||
if not disable_sounds and player then
|
||||
local pos = player:getpos()
|
||||
if pos then
|
||||
minetest.sound_play(name, {
|
||||
|
Reference in New Issue
Block a user