prompt box style, entity prompts improvement, killing entities and particles improvement

This commit is contained in:
lustlion
2022-03-11 13:04:36 +01:00
parent 8c8e4808ad
commit 96b1e750e4
6 changed files with 66 additions and 22 deletions

View File

@@ -104,12 +104,12 @@ function Entity:kill()
self.light:kill()
end
if self.id ~= nil then
table.remove(LoadedObjects.Entities,self.id)
for _, e in pairs(LoadedObjects.Entities) do
if e.id > self.id then
e.id = e.id - 1
end
end
table.remove(LoadedObjects.Entities,self.id)
end
self = nil
end