delele some unnecessary checks

This commit is contained in:
BlackMATov
2025-09-29 15:20:37 +07:00
parent d3b14a6741
commit 784b9c6a15
2 changed files with 5 additions and 8 deletions

View File

@@ -59,6 +59,7 @@
- [Chunk](#chunk)
- [Builder](#builder)
- [Changelog](#changelog)
- [vX.X.X](#vxxx)
- [v1.3.0](#v130)
- [v1.2.0](#v120)
- [v1.1.0](#v110)
@@ -1296,6 +1297,10 @@ builder_mt:destruction_policy :: id -> builder
## Changelog
### vX.X.X
- ...
### v1.3.0
- Added the new [`evolved.cancel`](#evolvedcancel) function

View File

@@ -4783,8 +4783,6 @@ end
---@param components? table<evolved.fragment, evolved.component>
---@return evolved.entity[] entity_list
function __evolved_multi_spawn(entity_count, components)
entity_count = entity_count or 1
if entity_count <= 0 then
return {}
end
@@ -4863,8 +4861,6 @@ end
---@param components? table<evolved.fragment, evolved.component>
---@return evolved.entity[] entity_list
function __evolved_multi_clone(entity_count, prefab, components)
entity_count = entity_count or 1
if entity_count <= 0 then
return {}
end
@@ -6299,8 +6295,6 @@ end
---@param entity_count integer
---@return evolved.entity[] entity_list
function __builder_mt:multi_spawn(entity_count)
entity_count = entity_count or 1
if entity_count <= 0 then
return {}
end
@@ -6374,8 +6368,6 @@ end
---@param prefab evolved.entity
---@return evolved.entity[] entity_list
function __builder_mt:multi_clone(entity_count, prefab)
entity_count = entity_count or 1
if entity_count <= 0 then
return {}
end