Added destroy instance in DataController after death

This commit is contained in:
ZioPao
2024-05-05 21:07:33 +02:00
parent 9b1876b235
commit a7a064119d
2 changed files with 19 additions and 5 deletions

View File

@@ -474,4 +474,12 @@ function DataController.GetInstance(username)
end
end
function DataController.DestroyInstance(username)
if DataController.instances[username] ~= nil then
DataController.instances[username] = nil
end
end
return DataController