Compare commits

..

No commits in common. "74506315b5a4d99b3304ef1434fcf179c8f46e13" and "61bd9a30fb33efc3ea569dbbede81d6583db2f44" have entirely different histories.

View File

@ -21,7 +21,7 @@ statemonitor=require("nulllib.statemonitor")
---Set optimal settings for random player sounds ---Set optimal settings for random player sounds
---@param sound Sound ---@param sound Sound
---@return Sound ---@return Sound
function sound_settings(sound) local function sound_settings(sound)
return sound:volume(1):pitch(1):pos(player:getPos()) return sound:volume(1):pitch(1):pos(player:getPos())
end end
@ -60,6 +60,7 @@ do
end end
-- }}} -- }}}
-- so is this
-- Master configuration -- {{{ -- Master configuration -- {{{
-- master state variables and configuration (do not access within pings) -- -- master state variables and configuration (do not access within pings) --
@ -74,8 +75,7 @@ do
["vanilla_partial"]=false, ["vanilla_partial"]=false,
["tail_enabled"]=true, ["tail_enabled"]=true,
["aquatic_enabled"]=true, ["aquatic_enabled"]=true,
["aquatic_override"]=false, ["aquatic_override"]=false
["is_cat"]=true
} }
sharedconfig.load_defaults(defaults) sharedconfig.load_defaults(defaults)
end end
@ -309,8 +309,6 @@ do
end end
function hurt() function hurt()
if sharedconfig.load("is_cat") then
sound_settings(sounds["entity.cat.hurt"]):play() end
lock_color=false lock_color=false
changeExpression("hurt", 10) changeExpression("hurt", 10)
lock_color=true lock_color=true
@ -414,15 +412,6 @@ do
end end
-- meow
function pings.meow()
sound_settings(sounds["entity.cat.ambient"]):play()
end
events.CHAT_SEND_MESSAGE:register(function(msg)
if sharedconfig.load("is_cat") then pings.meow() end
return msg end,
"chat_meow")
--- Toggle Vanilla --- --- Toggle Vanilla ---
function setVanilla(state) function setVanilla(state)
sharedconfig.save("vanilla_enabled", state) sharedconfig.save("vanilla_enabled", state)