From eae6ca27e8c6cb781bf8bf2b3bd517931a42403a Mon Sep 17 00:00:00 2001 From: Taidtuskecyh Date: Fri, 5 Jun 2020 11:49:41 +0200 Subject: [PATCH] better handling of MonDKPCurTeam comm on msg received --- Modules/comm.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/comm.lua b/Modules/comm.lua index 70d98e0e..ae8475e4 100644 --- a/Modules/comm.lua +++ b/Modules/comm.lua @@ -135,7 +135,7 @@ function MonDKP.Sync:OnCommReceived(prefix, message, distribution, sender) end return; elseif prefix == "MonDKPCurTeam" then - core.DB.defaults.CurrentTeam = message; + MonDKP:SetCurrentTeam(message) -- this also refreshes all the tables/views/graphs return elseif prefix == "MonDKPTalents" then local search = MonDKP:Table_Search(MonDKP:GetTable(MonDKP_DKPTable, true), sender, "player")