mirror of
				https://github.com/mcMMO-Dev/mcMMO.git
				synced 2025-11-03 18:43:43 +01:00 
			
		
		
		
	Think we may have been adding some entities twice.
This commit is contained in:
		@@ -619,11 +619,9 @@ public class HashChunkManager implements ChunkManager {
 | 
			
		||||
 | 
			
		||||
        List<Entity> tempSpawnedMobs = new ArrayList<Entity>(spawnedMobs);
 | 
			
		||||
        for (Entity entity : tempSpawnedMobs) {
 | 
			
		||||
            if (entity.isDead())
 | 
			
		||||
                mobsToRemove.add(entity);
 | 
			
		||||
 | 
			
		||||
            if (!entity.isValid())
 | 
			
		||||
            if (entity.isDead() || !entity.isValid()) {
 | 
			
		||||
                mobsToRemove.add(entity);
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        spawnedMobs.removeAll(mobsToRemove);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user