prompt box style, entity prompts improvement, killing entities and particles improvement
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user