From 305e26b750f5b830affb497646d7e230bec5377d Mon Sep 17 00:00:00 2001 From: Freeman Date: Wed, 4 Jan 2023 21:36:43 +0100 Subject: [PATCH] title dark_red instead red --- bank.lua | 4 ++-- shop.lua | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bank.lua b/bank.lua index 085a658..2dab7b0 100644 --- a/bank.lua +++ b/bank.lua @@ -51,7 +51,7 @@ function emeraldbank.keep(player, itemstack) emeraldbank.add_emeralds(player, itemcount*9) return true end - mcl_title.set(player, "actionbar", {text=S("You need keep emeralds or emeraldblocks in your hand!"), color="red"}) + mcl_title.set(player, "actionbar", {text=S("You need keep emeralds or emeraldblocks in your hand!"), color="dark_red"}) return false end @@ -69,7 +69,7 @@ function emeraldbank.take(player) core.add_item(pos, "mcl_core:emerald "..num) return true end - mcl_title.set(player, "actionbar", {text=S("Not enough Emeralds in your account"), color="red"}) + mcl_title.set(player, "actionbar", {text=S("Not enough Emeralds in your account"), color="dark_red"}) return false end diff --git a/shop.lua b/shop.lua index 25b95c0..fb943dd 100644 --- a/shop.lua +++ b/shop.lua @@ -298,7 +298,7 @@ core.register_on_player_receive_fields(function(sender, formname, fields) -- owner try exchanges if meta:get_string("owner") == name then - mcl_title.set(sender, "subtitle", {text=S("This is your own shop, you can't exchange to yourself!"), color="red"}) + mcl_title.set(sender, "subtitle", {text=S("This is your own shop, you can't exchange to yourself!"), color="dark_red"}) else @@ -307,13 +307,13 @@ core.register_on_player_receive_fields(function(sender, formname, fields) -- have u money? if bankemeralds < old_price then can_exchange = false - mcl_title.set(sender, "subtitle", {text=S("Not enough Emeralds in your account"), color="red"}) + mcl_title.set(sender, "subtitle", {text=S("Not enough Emeralds in your account"), color="dark_red"}) end --there are enough items? if not minv:contains_item("stock", shop_item.." "..old_count, true) then can_exchange = false - mcl_title.set(sender, "subtitle", {text=S("Out of Stock!"), color="red"}) + mcl_title.set(sender, "subtitle", {text=S("Out of Stock!"), color="dark_red"}) end -- do not trade air @@ -326,7 +326,7 @@ core.register_on_player_receive_fields(function(sender, formname, fields) core.add_item(player_pos, shop_item.." "..old_count) emeraldbank.add_emeralds(sender, -old_price) meta:set_int("stonks", meta:get_int("stonks")+old_price) - core.chat_send_player(name, S("Exchanged!")) + mcl_title.set(sender, "subtitle", {text=S("Exchanged!"), color="green"}) check_empty(pos) core.show_formspec(sender:get_player_name(), formspec_prefix..core.pos_to_string(pos), emeraldbank.get_shop_fs(pos, sender) ) end