This commit is contained in:
Ukendio 2024-09-29 06:07:55 +02:00
commit a7fb67b85e
2 changed files with 2 additions and 2 deletions

2
src/index.d.ts vendored
View file

@ -135,7 +135,7 @@ export class World {
* @param component Target Component
* @param data Component Data
*/
set<T>(entity: Entity, component: Id<T>, data: T): void;
set<T>(entity: Entity, component: Id<T>, data: NoInfer<T>): void;
/**
* Removes a component from the given entity

View file

@ -687,7 +687,7 @@ end
local function archetype_traverse_remove(world: World, id: i53, from: Archetype): Archetype
from = from or world.ROOT_ARCHETYPE
local edge = archetype_ensure_edge(world, from.node.add, id)
local edge = archetype_ensure_edge(world, from.node.remove, id)
local to = edge.to
if not to then