mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-11-04 15:43: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": {
|
"variants": {
|
||||||
|
|
||||||
"advanced=false,facing=north,state=off": { "model": "computercraft:computer_off" },
|
"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=south,state=off": { "model": "computercraft:computer_off", "y": 180 },
|
||||||
"advanced=false,facing=west,state=off": { "model": "computercraft:computer_off", "y": 270 },
|
"advanced=false,facing=west,state=off": { "model": "computercraft:computer_off", "y": 270 },
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
CHANNEL_GPS = 65534
|
CHANNEL_GPS = 65534
|
||||||
|
|
||||||
local function trilaterate( A, B, C )
|
local function trilaterate( A, B, C )
|
||||||
|
|||||||
@@ -76,5 +76,3 @@ function completeTopic( sText )
|
|||||||
end
|
end
|
||||||
return tResults
|
return tResults
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -24,4 +24,3 @@ else
|
|||||||
table.sort( tList )
|
table.sort( tList )
|
||||||
textutils.pagedTabulate( tList )
|
textutils.pagedTabulate( tList )
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ local function save( _sPath )
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- Save
|
-- Save
|
||||||
local file = nil
|
local file, fileerr
|
||||||
local function innerSave()
|
local function innerSave()
|
||||||
file, fileerr = fs.open( _sPath, "w" )
|
file, fileerr = fs.open( _sPath, "w" )
|
||||||
if file then
|
if file then
|
||||||
@@ -774,4 +774,3 @@ end
|
|||||||
term.clear()
|
term.clear()
|
||||||
term.setCursorBlink( false )
|
term.setCursorBlink( false )
|
||||||
term.setCursorPos( 1, 1 )
|
term.setCursorPos( 1, 1 )
|
||||||
|
|
||||||
|
|||||||
@@ -405,4 +405,3 @@ term.setBackgroundColour(colours.black)
|
|||||||
term.setTextColour(colours.white)
|
term.setTextColour(colours.white)
|
||||||
term.clear()
|
term.clear()
|
||||||
term.setCursorPos(1,1)
|
term.setCursorPos(1,1)
|
||||||
|
|
||||||
|
|||||||
@@ -285,5 +285,3 @@ until e == "char"
|
|||||||
|
|
||||||
term.clear()
|
term.clear()
|
||||||
term.setCursorPos(1,1)
|
term.setCursorPos(1,1)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -91,5 +91,4 @@ else
|
|||||||
-- "gps somethingelse"
|
-- "gps somethingelse"
|
||||||
-- Error
|
-- Error
|
||||||
printUsage()
|
printUsage()
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -27,4 +27,3 @@ else
|
|||||||
print( "The disk is labelled \""..label.."\"" )
|
print( "The disk is labelled \""..label.."\"" )
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
local function printUsage()
|
local function printUsage()
|
||||||
print( "Usage: monitor <name> <program> <arguments>" )
|
print( "Usage: monitor <name> <program> <arguments>" )
|
||||||
return
|
return
|
||||||
@@ -64,4 +63,3 @@ term.redirect( previousTerm )
|
|||||||
if not ok then
|
if not ok then
|
||||||
printError( param )
|
printError( param )
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -15,14 +15,14 @@ else
|
|||||||
print( #tModems .. " modems found." )
|
print( #tModems .. " modems found." )
|
||||||
end
|
end
|
||||||
|
|
||||||
function open( nChannel )
|
local function open( nChannel )
|
||||||
for n=1,#tModems do
|
for n=1,#tModems do
|
||||||
local sModem = tModems[n]
|
local sModem = tModems[n]
|
||||||
peripheral.call( sModem, "open", nChannel )
|
peripheral.call( sModem, "open", nChannel )
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function close( nChannel )
|
local function close( nChannel )
|
||||||
for n=1,#tModems do
|
for n=1,#tModems do
|
||||||
local sModem = tModems[n]
|
local sModem = tModems[n]
|
||||||
peripheral.call( sModem, "close", nChannel )
|
peripheral.call( sModem, "close", nChannel )
|
||||||
|
|||||||
@@ -34,5 +34,4 @@ while nArg <= #tArgs do
|
|||||||
print( "Try: left, right" )
|
print( "Try: left, right" )
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user