mirror of
				https://github.com/SquidDev-CC/CC-Tweaked
				synced 2025-10-31 05:33:00 +00:00 
			
		
		
		
	The big massive reformat
- Normalise all line endings to be LF rather than CLRF - Trim all trailing whitespace - Remove any tabs
This commit is contained in:
		| @@ -1,19 +0,0 @@ | ||||
| /* | ||||
|  * This file is part of ComputerCraft - http://www.computercraft.info | ||||
|  * Copyright Daniel Ratcliffe, 2011-2017. Do not distribute without permission. | ||||
|  * Send enquiries to dratcliffe@gmail.com | ||||
|  */ | ||||
|  | ||||
| package dan200.computercraft.client.gui.widgets; | ||||
|  | ||||
| public class MousePos | ||||
| { | ||||
| 	public int x; | ||||
| 	public int y; | ||||
|  | ||||
| 	public MousePos( int x, int y ) | ||||
| 	{ | ||||
| 		this.x = x; | ||||
| 		this.y = y; | ||||
| 	} | ||||
| } | ||||
| @@ -1,6 +1,5 @@ | ||||
| { | ||||
|     "variants": { | ||||
|  | ||||
|         "advanced=false,facing=north,state=off": { "model": "computercraft:computer_off" }, | ||||
|         "advanced=false,facing=south,state=off": { "model": "computercraft:computer_off", "y": 180 }, | ||||
|         "advanced=false,facing=west,state=off": { "model": "computercraft:computer_off", "y": 270 }, | ||||
|   | ||||
| @@ -1,4 +1,3 @@ | ||||
|  | ||||
| CHANNEL_GPS = 65534 | ||||
|  | ||||
| local function trilaterate( A, B, C ) | ||||
|   | ||||
| @@ -76,5 +76,3 @@ function completeTopic( sText ) | ||||
|     end | ||||
|     return tResults | ||||
| end | ||||
|  | ||||
|  | ||||
|   | ||||
| @@ -24,4 +24,3 @@ else | ||||
|     table.sort( tList ) | ||||
|     textutils.pagedTabulate( tList ) | ||||
| end | ||||
|      | ||||
|   | ||||
| @@ -91,7 +91,7 @@ local function save( _sPath ) | ||||
|     end | ||||
|  | ||||
|     -- Save | ||||
|     local file = nil | ||||
|     local file, fileerr | ||||
|     local function innerSave() | ||||
|         file, fileerr = fs.open( _sPath, "w" ) | ||||
|         if file then | ||||
| @@ -774,4 +774,3 @@ end | ||||
| term.clear() | ||||
| term.setCursorBlink( false ) | ||||
| term.setCursorPos( 1, 1 ) | ||||
|  | ||||
|   | ||||
| @@ -405,4 +405,3 @@ term.setBackgroundColour(colours.black) | ||||
| term.setTextColour(colours.white) | ||||
| term.clear() | ||||
| term.setCursorPos(1,1) | ||||
|  | ||||
|   | ||||
| @@ -285,5 +285,3 @@ until e == "char" | ||||
|  | ||||
| term.clear() | ||||
| term.setCursorPos(1,1) | ||||
|  | ||||
|          | ||||
|   | ||||
| @@ -91,5 +91,4 @@ else | ||||
|     -- "gps somethingelse" | ||||
|     -- Error | ||||
|     printUsage() | ||||
|      | ||||
| end | ||||
|   | ||||
| @@ -27,4 +27,3 @@ else | ||||
|         print( "The disk is labelled \""..label.."\"" ) | ||||
|     end | ||||
| end | ||||
|  | ||||
|   | ||||
| @@ -1,4 +1,3 @@ | ||||
|  | ||||
| local function printUsage() | ||||
|     print( "Usage: monitor <name> <program> <arguments>" ) | ||||
|     return | ||||
| @@ -64,4 +63,3 @@ term.redirect( previousTerm ) | ||||
| if not ok then | ||||
|     printError( param ) | ||||
| end | ||||
|      | ||||
|   | ||||
| @@ -15,14 +15,14 @@ else | ||||
|     print( #tModems .. " modems found." ) | ||||
| end | ||||
|  | ||||
| function open( nChannel ) | ||||
| local function open( nChannel ) | ||||
|     for n=1,#tModems do | ||||
|         local sModem = tModems[n] | ||||
|         peripheral.call( sModem, "open", nChannel ) | ||||
|     end | ||||
| end | ||||
|  | ||||
| function close( nChannel ) | ||||
| local function close( nChannel ) | ||||
|     for n=1,#tModems do | ||||
|         local sModem = tModems[n] | ||||
|         peripheral.call( sModem, "close", nChannel ) | ||||
|   | ||||
| @@ -34,5 +34,4 @@ while nArg <= #tArgs do | ||||
|         print( "Try: left, right" ) | ||||
|         return | ||||
|     end | ||||
|      | ||||
| end | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 SquidDev
					SquidDev