mirror of
				https://github.com/SquidDev-CC/CC-Tweaked
				synced 2025-10-31 13:42:59 +00:00 
			
		
		
		
	Turn a nil to a string
Makes a `nil` a string inside of an expect in `define`, allowing `nil` to be passed.
This commit is contained in:
		| @@ -42,7 +42,7 @@ for _, v in ipairs(valid_types) do valid_types[v] = true end | ||||
| --    will error. | ||||
| function define(name, options) | ||||
|     expect(1, name, "string") | ||||
|     expect(2, options, "table", nil) | ||||
|     expect(2, options, "table", "nil") | ||||
|  | ||||
|     if options then | ||||
|         options = { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 SkyTheCodeMaster
					SkyTheCodeMaster