Skip to content

Commit

Permalink
Add setting to enable extra inbox messages
Browse files Browse the repository at this point in the history
  • Loading branch information
AntumDeluge committed Jan 18, 2025
1 parent 04504f3 commit 315aed3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion homedecor_inbox/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions settingtypes.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

# Enables extra messages to players for certain actions.
homedecor.verbose_messages (Verbose messages) bool false

0 comments on commit 315aed3

Please sign in to comment.