This commit is contained in:
DCFApixels 2025-04-04 14:42:44 +08:00
parent 6c3386cb4f
commit fb79734935
2 changed files with 2 additions and 2 deletions

View File

@ -100,7 +100,7 @@ namespace DCFApixels.DragonECS
if (_isLocked) { EcsPoolThrowHelper.ThrowPoolLocked(); }
#elif DRAGONECS_STABILITY_MODE
if (itemIndex > 0) { return ref Get(entityID); }
if (_isLocked) { return ref _items[0]; }
if (_isLocked || _source.IsUsed(entityID) == false) { return ref _items[0]; }
#endif
if (_recycledItemsCount > 0)
{

View File

@ -108,7 +108,7 @@ namespace DCFApixels.DragonECS
if (Has(entityID)) { EcsPoolThrowHelper.ThrowAlreadyHasComponent<T>(entityID); }
if (_isLocked) { EcsPoolThrowHelper.ThrowPoolLocked(); }
#elif DRAGONECS_STABILITY_MODE
if (Has(entityID) || _isLocked) { return; }
if (Has(entityID) || _source.IsUsed(entityID) == false || _isLocked) { return; }
#endif
_count++;
_mapping[entityID] = true;