mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2026-04-22 01:45:55 +08:00
fix
This commit is contained in:
parent
ec26a1623a
commit
47d8e100a1
@ -136,7 +136,7 @@ namespace DCFApixels.DragonECS
|
|||||||
if (_isLocked) { EcsPoolThrowHelper.ThrowPoolLocked(); }
|
if (_isLocked) { EcsPoolThrowHelper.ThrowPoolLocked(); }
|
||||||
#elif DRAGONECS_STABILITY_MODE
|
#elif DRAGONECS_STABILITY_MODE
|
||||||
if (itemIndex > 0) { return ref Get(entityID); }
|
if (itemIndex > 0) { return ref Get(entityID); }
|
||||||
if (_isLocked | _source.IsUsed(entityID) == false) { return ref _items[0]; }
|
if (_isLocked | _world.IsUsed(entityID) == false) { return ref _items[0]; }
|
||||||
#endif
|
#endif
|
||||||
if (_recycledItemsCount > 0)
|
if (_recycledItemsCount > 0)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -120,7 +120,7 @@ namespace DCFApixels.DragonECS
|
|||||||
if (Has(entityID)) { EcsPoolThrowHelper.ThrowAlreadyHasComponent<T>(entityID); }
|
if (Has(entityID)) { EcsPoolThrowHelper.ThrowAlreadyHasComponent<T>(entityID); }
|
||||||
if (_isLocked) { EcsPoolThrowHelper.ThrowPoolLocked(); }
|
if (_isLocked) { EcsPoolThrowHelper.ThrowPoolLocked(); }
|
||||||
#elif DRAGONECS_STABILITY_MODE
|
#elif DRAGONECS_STABILITY_MODE
|
||||||
if (Has(entityID) | _source.IsUsed(entityID) == false | _isLocked) { return; }
|
if (Has(entityID) | _world.IsUsed(entityID) == false | _isLocked) { return; }
|
||||||
#endif
|
#endif
|
||||||
_count++;
|
_count++;
|
||||||
_mapping[entityID] = true;
|
_mapping[entityID] = true;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user