mirror of
https://github.com/BlackMATov/evolved.lua.git
synced 2025-12-16 22:19:25 +07:00
style fixes
This commit is contained in:
@@ -919,11 +919,12 @@ function registry.remove(entity, ...)
|
||||
end
|
||||
|
||||
if new_chunk ~= nil then
|
||||
local new_chunk_size = #new_chunk.__entities
|
||||
local new_chunk_entities = new_chunk.__entities
|
||||
local new_chunk_components = new_chunk.__components
|
||||
|
||||
local old_index_in_chunk = entity.__index_in_chunk
|
||||
local new_index_in_chunk = #new_chunk.__entities + 1
|
||||
local new_index_in_chunk = new_chunk_size + 1
|
||||
|
||||
new_chunk_entities[new_index_in_chunk] = entity
|
||||
|
||||
|
||||
Reference in New Issue
Block a user