From 315aed3dc03be56b790568916444ea56e4800a9a Mon Sep 17 00:00:00 2001 From: Jordan Irwin Date: Fri, 17 Jan 2025 20:18:36 -0800 Subject: [PATCH] Add setting to enable extra inbox messages --- homedecor_inbox/init.lua | 4 +++- settingtypes.txt | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 settingtypes.txt diff --git a/homedecor_inbox/init.lua b/homedecor_inbox/init.lua index 7998fd6b..728ef2f6 100644 --- a/homedecor_inbox/init.lua +++ b/homedecor_inbox/init.lua @@ -79,7 +79,9 @@ homedecor.register("inbox", { if inv:room_for_item("main", stack) then return -1 else - core.chat_send_player(player:get_player_name(), S("This mailbox is full.")) + if core.settings:get_bool("homedecor.verbose_messages", false) then + core.chat_send_player(player:get_player_name(), S("This mailbox is full.")) + end return 0 end end diff --git a/settingtypes.txt b/settingtypes.txt new file mode 100644 index 00000000..e10ffdb2 --- /dev/null +++ b/settingtypes.txt @@ -0,0 +1,3 @@ + +# Enables extra messages to players for certain actions. +homedecor.verbose_messages (Verbose messages) bool false