Added check to prevent incompatibilities with other mods

This commit is contained in:
ZioPao
2024-05-04 15:35:25 +02:00
parent 17d554d269
commit 50f6db9344
2 changed files with 2 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 540 KiB

View File

@@ -368,6 +368,8 @@ end
function DataController.ReceiveData(key, data)
-- During startup the game can return Bob as the player username, adding a useless ModData table
if key == "TOC_Bob" then return end
if not luautils.stringStarts(key, StaticData.MOD_NAME .. "_") then return end
TOC_DEBUG.print("ReceiveData for " .. key)
if data == {} or data == nil then