You've already forked ComfyFactorio
							
							
				mirror of
				https://github.com/ComfyFactory/ComfyFactorio.git
				synced 2025-10-30 23:47:41 +02:00 
			
		
		
		
	Fix raffle function insert calls
This commit is contained in:
		| @@ -21,8 +21,8 @@ function Public.raffle(arg1, arg2) | ||||
| 		options = {} | ||||
| 		weights_table = {} | ||||
| 		for option, weight in pairs(arg1) do | ||||
| 			arg1.insert(options, option) | ||||
| 			arg1.insert(weights_table, weight) | ||||
| 			table.insert(options, option) | ||||
| 			table.insert(weights_table, weight) | ||||
| 			if weight > 0 then | ||||
| 				total_weight = total_weight + weight | ||||
| 			end | ||||
|   | ||||
		Reference in New Issue
	
	Block a user