From 086085becaa2134ae05a62221fdbd9ab39134175 Mon Sep 17 00:00:00 2001 From: Freeman Date: Sun, 19 Nov 2023 21:40:26 +0100 Subject: [PATCH] beerchat.on_channel_message to broadcast --- functions.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions.lua b/functions.lua index b433728..15dccdb 100644 --- a/functions.lua +++ b/functions.lua @@ -112,8 +112,8 @@ function emeraldbank.transfer_emeralds(player1, player2, num) if core.get_modpath("yl_matterbridge") then yl_matterbridge.send_to_bridge("EMERALDBANK", msg) end - if core.get_modpath("beerchat") and beerchat.send_on_channel then - beerchat.send_on_channel({name="EMERALDBANK", channel=beerchat.main_channel_name, message=msg}) + if core.get_modpath("beerchat") then + beerchat.on_channel_message(beerchat.main_channel_name, "EMERALDBANK", msg) end emeraldbank.add_emeralds(player1, -num) emeraldbank.add_emeralds(player2, num)