From 04504f3ff82fab1c1fcb6b94a4f0063bec8c240e Mon Sep 17 00:00:00 2001 From: Jordan Irwin Date: Wed, 23 Jun 2021 21:03:17 -0700 Subject: [PATCH] Message player if inbox is full --- homedecor_inbox/init.lua | 1 + homedecor_inbox/locale/template.txt | 1 + 2 files changed, 2 insertions(+) diff --git a/homedecor_inbox/init.lua b/homedecor_inbox/init.lua index 6d870dc4..7998fd6b 100644 --- a/homedecor_inbox/init.lua +++ b/homedecor_inbox/init.lua @@ -79,6 +79,7 @@ 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.")) return 0 end end diff --git a/homedecor_inbox/locale/template.txt b/homedecor_inbox/locale/template.txt index 8c11f35c..724d7736 100644 --- a/homedecor_inbox/locale/template.txt +++ b/homedecor_inbox/locale/template.txt @@ -1,3 +1,4 @@ # textdomain: homedecor_inbox Mailbox= @1's Mailbox= +This mailbox is full.=