Skip to content

Commit a7fb67b

Browse files
committed
Merge branch 'main' of https://github.com/Ukendio/jecs
2 parents f0e4dc8 + d6932ff commit a7fb67b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ export class World {
135135
* @param component Target Component
136136
* @param data Component Data
137137
*/
138-
set<T>(entity: Entity, component: Id<T>, data: T): void;
138+
set<T>(entity: Entity, component: Id<T>, data: NoInfer<T>): void;
139139

140140
/**
141141
* Removes a component from the given entity

src/init.luau

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,7 @@ end
687687
local function archetype_traverse_remove(world: World, id: i53, from: Archetype): Archetype
688688
from = from or world.ROOT_ARCHETYPE
689689

690-
local edge = archetype_ensure_edge(world, from.node.add, id)
690+
local edge = archetype_ensure_edge(world, from.node.remove, id)
691691

692692
local to = edge.to
693693
if not to then

0 commit comments

Comments
 (0)