mirror of
				https://github.com/LDDestroier/CC/
				synced 2025-10-31 15:32:59 +00:00 
			
		
		
		
	Fixed simultaneous messages
...probably
This commit is contained in:
		
							
								
								
									
										16
									
								
								disknet.lua
									
									
									
									
									
								
							
							
						
						
									
										16
									
								
								disknet.lua
									
									
									
									
									
								
							| @@ -156,7 +156,7 @@ disknet.receive = function(channel) | |||||||
| 	 | 	 | ||||||
| 		local output, contents | 		local output, contents | ||||||
| 		local doRewrite = false | 		local doRewrite = false | ||||||
| 		 | 		local look = 1 | ||||||
| 		while true do | 		while true do | ||||||
| 			loadFList() | 			loadFList() | ||||||
| 			for i = 1, #fList do | 			for i = 1, #fList do | ||||||
| @@ -164,15 +164,19 @@ disknet.receive = function(channel) | |||||||
| 				if contents ~= "" then | 				if contents ~= "" then | ||||||
| 					contents = textutils.unserialize(contents) | 					contents = textutils.unserialize(contents) | ||||||
| 					if type(contents) == "table" then | 					if type(contents) == "table" then | ||||||
| 						if contents[1] then | 						if contents[look] then | ||||||
| 							if (not output) and (contents[1].uniqueID ~= uniqueID) and (not msgCheckList[contents[1].messageID]) then | 							if not output then | ||||||
| 								if getTime() - (contents[1].time or 0) <= 0.01 then | 								if (contents[look].uniqueID ~= uniqueID) and (not msgCheckList[contents[1].messageID]) then | ||||||
| 									msgCheckList[contents[1].messageID] = true | 									if getTime() - (contents[look].time or 0) <= 0.01 then | ||||||
|  | 										msgCheckList[contents[look].messageID] = true | ||||||
| 										output = {} | 										output = {} | ||||||
| 									for k,v in pairs(contents[1]) do | 										for k,v in pairs(contents[look]) do | ||||||
| 											output[k] = v | 											output[k] = v | ||||||
| 										end | 										end | ||||||
| 									end | 									end | ||||||
|  | 								else | ||||||
|  | 									look = math.min(look + 1, #contents) | ||||||
|  | 								end | ||||||
| 							end | 							end | ||||||
| 							doRewrite = false | 							doRewrite = false | ||||||
| 							for t = #contents, 1, -1 do | 							for t = #contents, 1, -1 do | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 LDDestroier
					LDDestroier