mirror of
				https://github.com/Ukendio/jecs.git
				synced 2025-11-04 02:49:18 +00:00 
			
		
		
		
	Fix  receive_replication.luau removed issue (#243)
	
		
			
	
		
	
	
		
	
		
			Some checks are pending
		
		
	
	
	
				
					
				
			
		
			Some checks are pending
		
		
	
	
This commit is contained in:
		
							parent
							
								
									4ff492ceaf
								
							
						
					
					
						commit
						9b57189c3a
					
				
					 1 changed files with 4 additions and 3 deletions
				
			
		| 
						 | 
					@ -74,11 +74,12 @@ return function(world: types.World)
 | 
				
			||||||
            local removed = map.removed
 | 
					            local removed = map.removed
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            if removed then
 | 
					            if removed then
 | 
				
			||||||
                for i, e in removed do
 | 
					                for _, entity in removed do
 | 
				
			||||||
                    if not world:contains(e) then
 | 
					                    entity = ecs_map_get(world, entity)
 | 
				
			||||||
 | 
					                    if not world:contains(entity) then
 | 
				
			||||||
                        continue
 | 
					                        continue
 | 
				
			||||||
                    end
 | 
					                    end
 | 
				
			||||||
                    world:remove(e, id)
 | 
					                    world:remove(entity, id)
 | 
				
			||||||
                end
 | 
					                end
 | 
				
			||||||
            end
 | 
					            end
 | 
				
			||||||
        end
 | 
					        end
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue