1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-06-14 04:24:11 +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:
SquidDev 2018-12-17 17:22:15 +00:00
parent e6850ab644
commit 86569533e9
154 changed files with 3684 additions and 3717 deletions

View File

@ -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;
}
}

View File

@ -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 },

View File

@ -1,4 +1,3 @@
CHANNEL_GPS = 65534
local function trilaterate( A, B, C )

View File

@ -76,5 +76,3 @@ function completeTopic( sText )
end
return tResults
end

View File

@ -24,4 +24,3 @@ else
table.sort( tList )
textutils.pagedTabulate( tList )
end

View File

@ -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 )

View File

@ -405,4 +405,3 @@ term.setBackgroundColour(colours.black)
term.setTextColour(colours.white)
term.clear()
term.setCursorPos(1,1)

View File

@ -285,5 +285,3 @@ until e == "char"
term.clear()
term.setCursorPos(1,1)

View File

@ -91,5 +91,4 @@ else
-- "gps somethingelse"
-- Error
printUsage()
end

View File

@ -27,4 +27,3 @@ else
print( "The disk is labelled \""..label.."\"" )
end
end

View File

@ -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

View File

@ -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 )

View File

@ -34,5 +34,4 @@ while nArg <= #tArgs do
print( "Try: left, right" )
return
end
end