mirror of
				https://github.com/Ukendio/jecs.git
				synced 2025-10-30 16:59:17 +00:00 
			
		
		
		
	Merge branch 'main' of https://github.com/Ukendio/jecs
This commit is contained in:
		
						commit
						a7fb67b85e
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		
							
								
								
									
										2
									
								
								src/index.d.ts
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								src/index.d.ts
									
									
									
									
										vendored
									
									
								
							|  | @ -135,7 +135,7 @@ export class World { | ||||||
|      * @param component Target Component |      * @param component Target Component | ||||||
|      * @param data Component Data |      * @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 |      * Removes a component from the given entity | ||||||
|  |  | ||||||
|  | @ -687,7 +687,7 @@ end | ||||||
| local function archetype_traverse_remove(world: World, id: i53, from: Archetype): Archetype | local function archetype_traverse_remove(world: World, id: i53, from: Archetype): Archetype | ||||||
| 	from = from or world.ROOT_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 | 	local to = edge.to | ||||||
| 	if not to then | 	if not to then | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue