1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-09-29 07:20:48 +00:00

Fix a few typos

Just ran[^1] over the codebase. Turns out we'd duplicated one of the
changelog entries entirely - I suspect due to a version merge gone
wrong!

[^1]: https://github.com/crate-ci/typos/
This commit is contained in:
Jonathan Coates 2023-01-24 18:47:29 +00:00
parent 7335a892b5
commit 6cd32a6368
No known key found for this signature in database
GPG Key ID: B9E431FF07C98D06
23 changed files with 38 additions and 64 deletions

View File

@ -34,7 +34,7 @@ abstract class CheckChangelog : DefaultTask() {
var ok = true var ok = true
// Check we're targetting the current version // Check we're targeting the current version
var whatsNew = whatsNew.get().asFile.readLines() var whatsNew = whatsNew.get().asFile.readLines()
if (whatsNew[0] != "New features in CC: Tweaked $version") { if (whatsNew[0] != "New features in CC: Tweaked $version") {
ok = false ok = false

View File

@ -25,7 +25,7 @@ single-player or multiplayer. Look for lines that look like this:
``` ```
On 1.95.0 and later, this will be a single entry with `host = "$private"`. On earlier versions, this will be a number of On 1.95.0 and later, this will be a single entry with `host = "$private"`. On earlier versions, this will be a number of
`[[http.rules]]` with various IP addresses. You will want to remove all of the `[[http.rules]]` entires that have `[[http.rules]]` with various IP addresses. You will want to remove all of the `[[http.rules]]` entries that have
`action = "deny"`. Then save the file and relaunch Minecraft (Server). `action = "deny"`. Then save the file and relaunch Minecraft (Server).
Here's what it should look like after removing: Here's what it should look like after removing:
@ -54,7 +54,7 @@ like this:
```toml ```toml
#A list of wildcards for domains or IP ranges that cannot be accessed through the "http" API on Computers. #A list of wildcards for domains or IP ranges that cannot be accessed through the "http" API on Computers.
#If this is empty then all whitelisted domains will be accessible. Example: "*.github.com" will block access to all subdomains of github.com. #If this is empty then all whitelisted domains will be accessible. Example: "*.github.com" will block access to all subdomains of github.com.
#You can use domain names ("pastebin.com"), wilcards ("*.pastebin.com") or CIDR notation ("127.0.0.0/8"). #You can use domain names ("pastebin.com"), wildcards ("*.pastebin.com") or CIDR notation ("127.0.0.0/8").
blacklist = ["127.0.0.0/8", "10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16", "fd00::/8"] blacklist = ["127.0.0.0/8", "10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16", "fd00::/8"]
``` ```
@ -65,7 +65,7 @@ Here's what it should look like after removing:
```toml ```toml
#A list of wildcards for domains or IP ranges that cannot be accessed through the "http" API on Computers. #A list of wildcards for domains or IP ranges that cannot be accessed through the "http" API on Computers.
#If this is empty then all whitelisted domains will be accessible. Example: "*.github.com" will block access to all subdomains of github.com. #If this is empty then all whitelisted domains will be accessible. Example: "*.github.com" will block access to all subdomains of github.com.
#You can use domain names ("pastebin.com"), wilcards ("*.pastebin.com") or CIDR notation ("127.0.0.0/8"). #You can use domain names ("pastebin.com"), wildcards ("*.pastebin.com") or CIDR notation ("127.0.0.0/8").
blacklist = [] blacklist = []
``` ```

View File

@ -98,7 +98,7 @@ public abstract class TurtleUpgradeDataProvider extends UpgradeDataProvider<ITur
* get the final damage. * get the final damage.
* *
* @param damageMultiplier The damage multiplier. * @param damageMultiplier The damage multiplier.
* @return The tool builder, for futher use. * @return The tool builder, for further use.
*/ */
public ToolBuilder damageMultiplier(float damageMultiplier) { public ToolBuilder damageMultiplier(float damageMultiplier) {
this.damageMultiplier = damageMultiplier; this.damageMultiplier = damageMultiplier;

View File

@ -144,7 +144,7 @@ public abstract class UpgradeDataProvider<T extends UpgradeBase, R extends Upgra
} }
public List<T> getGeneratedUpgrades() { public List<T> getGeneratedUpgrades() {
if (upgrades == null) throw new IllegalStateException("Upgrades have not beeen generated yet"); if (upgrades == null) throw new IllegalStateException("Upgrades have not been generated yet");
return upgrades; return upgrades;
} }

View File

@ -82,10 +82,10 @@ public class UpgradesLoadedMessage implements NetworkMessage<ClientNetworkContex
var serialiser = entry.getValue().serialiser(); var serialiser = entry.getValue().serialiser();
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
var unwrapedSerialiser = (UpgradeSerialiser<T>) serialiser; var unwrappedSerialiser = (UpgradeSerialiser<T>) serialiser;
buf.writeResourceLocation(Objects.requireNonNull(registry.getKey(serialiser), "Serialiser is not registered!")); buf.writeResourceLocation(Objects.requireNonNull(registry.getKey(serialiser), "Serialiser is not registered!"));
unwrapedSerialiser.toNetwork(buf, entry.getValue().upgrade()); unwrappedSerialiser.toNetwork(buf, entry.getValue().upgrade());
buf.writeUtf(entry.getValue().modId()); buf.writeUtf(entry.getValue().modId());
} }

View File

@ -136,7 +136,7 @@ public class TurtleAPI implements ILuaAPI {
} }
/** /**
* Rotate the turtle 90 degress to the left. * Rotate the turtle 90 degrees to the left.
* *
* @return The turtle command result. * @return The turtle command result.
* @cc.treturn boolean Whether the turtle could successfully turn. * @cc.treturn boolean Whether the turtle could successfully turn.
@ -148,7 +148,7 @@ public class TurtleAPI implements ILuaAPI {
} }
/** /**
* Rotate the turtle 90 degress to the right. * Rotate the turtle 90 degrees to the right.
* *
* @return The turtle command result. * @return The turtle command result.
* @cc.treturn boolean Whether the turtle could successfully turn. * @cc.treturn boolean Whether the turtle could successfully turn.
@ -652,7 +652,7 @@ public class TurtleAPI implements ILuaAPI {
* previous upgrade is removed and placed into the turtle's inventory. If there is no item in the slot, the previous * previous upgrade is removed and placed into the turtle's inventory. If there is no item in the slot, the previous
* upgrade is removed, but no new one is equipped. * upgrade is removed, but no new one is equipped.
* *
* @return Whether an item was equiped or not. * @return Whether an item was equipped or not.
* @cc.treturn [1] true If the item was equipped. * @cc.treturn [1] true If the item was equipped.
* @cc.treturn [2] false If we could not equip the item. * @cc.treturn [2] false If we could not equip the item.
* @cc.treturn [2] string The reason equipping this item failed. * @cc.treturn [2] string The reason equipping this item failed.
@ -671,7 +671,7 @@ public class TurtleAPI implements ILuaAPI {
* previous upgrade is removed and placed into the turtle's inventory. If there is no item in the slot, the previous * previous upgrade is removed and placed into the turtle's inventory. If there is no item in the slot, the previous
* upgrade is removed, but no new one is equipped. * upgrade is removed, but no new one is equipped.
* *
* @return Whether an item was equiped or not. * @return Whether an item was equipped or not.
* @cc.treturn [1] true If the item was equipped. * @cc.treturn [1] true If the item was equipped.
* @cc.treturn [2] false If we could not equip the item. * @cc.treturn [2] false If we could not equip the item.
* @cc.treturn [2] string The reason equipping this item failed. * @cc.treturn [2] string The reason equipping this item failed.

View File

@ -178,8 +178,8 @@ public final class WorldUtil {
} }
@Override @Override
public VoxelShape getBlockShape(BlockState state, BlockGetter levle, BlockPos pos) { public VoxelShape getBlockShape(BlockState state, BlockGetter level, BlockPos pos) {
return block.get(state, levle, pos, CollisionContext.empty()); return block.get(state, level, pos, CollisionContext.empty());
} }
} }
} }

View File

@ -117,7 +117,7 @@ public class RedstoneAPI implements ILuaAPI {
* *
* @param side The side to set. * @param side The side to set.
* @param value The signal strength between 0 and 15. * @param value The signal strength between 0 and 15.
* @throws LuaException If {@code value} is not betwene 0 and 15. * @throws LuaException If {@code value} is not between 0 and 15.
* @cc.since 1.51 * @cc.since 1.51
*/ */
@LuaFunction({ "setAnalogOutput", "setAnalogueOutput" }) @LuaFunction({ "setAnalogOutput", "setAnalogueOutput" })

View File

@ -51,7 +51,7 @@ public class EncodedWritableHandle extends HandleGeneric {
} }
/** /**
* Write a string of characters to the file, follwing them with a new line character. * Write a string of characters to the file, following them with a new line character.
* *
* @param args The value to write. * @param args The value to write.
* @throws LuaException If the file has been closed. * @throws LuaException If the file has been closed.

View File

@ -700,7 +700,7 @@ settings.define("motd.path", {
settings.define("lua.warn_against_use_of_local", { settings.define("lua.warn_against_use_of_local", {
default = true, default = true,
description = [[Print a message when input in the Lua REPL starts with the word 'local'. Local variables defined in the Lua REPL are be inaccessable on the next input.]], description = [[Print a message when input in the Lua REPL starts with the word 'local'. Local variables defined in the Lua REPL are be inaccessible on the next input.]],
type = "boolean", type = "boolean",
}) })
settings.define("lua.function_args", { settings.define("lua.function_args", {

View File

@ -16,7 +16,7 @@ function path()
return sPath return sPath
end end
--- Sets the colon-seperated list of directories where help files are searched --- Sets the colon-separated list of directories where help files are searched
-- for to `newPath` -- for to `newPath`
-- --
-- @tparam string newPath The new path to use. -- @tparam string newPath The new path to use.

View File

@ -1,6 +1,6 @@
--[[- A simple way to run several functions at once. --[[- A simple way to run several functions at once.
Functions are not actually executed simultaniously, but rather this API will Functions are not actually executed simultaneously, but rather this API will
automatically switch between them whenever they yield (e.g. whenever they call automatically switch between them whenever they yield (e.g. whenever they call
@{coroutine.yield}, or functions that call that - such as @{os.pullEvent} - or @{coroutine.yield}, or functions that call that - such as @{os.pullEvent} - or
functions that call that, etc - basically, anything that causes the function functions that call that, etc - basically, anything that causes the function

View File

@ -157,7 +157,7 @@ function pagedPrint(text, free_lines)
-- Removed the redirector -- Removed the redirector
term.redirect(oldTerm) term.redirect(oldTerm)
-- Propogate errors -- Propagate errors
if not ok then if not ok then
error(err, 0) error(err, 0)
end end

View File

@ -261,7 +261,7 @@ And several bug fixes:
And several bug fixes: And several bug fixes:
* Fix NPE when using a treasure disk when no treasure disks are available. * Fix NPE when using a treasure disk when no treasure disks are available.
* Prevent command computers discarding command ouput when certain game rules are off. * Prevent command computers discarding command output when certain game rules are off.
* Fix turtles not updating peripherals when upgrades are unequipped (Ronan-H). * Fix turtles not updating peripherals when upgrades are unequipped (Ronan-H).
* Fix computers not shutting down on fatal errors within the Lua VM. * Fix computers not shutting down on fatal errors within the Lua VM.
* Speakers now correctly stop playing when broken, and sound follows noisy turtles and pocket computers. * Speakers now correctly stop playing when broken, and sound follows noisy turtles and pocket computers.
@ -271,32 +271,6 @@ And several bug fixes:
* Correctly render the transparent background on pocket/normal computers. * Correctly render the transparent background on pocket/normal computers.
* Don't apply CraftTweaker actions twice on single-player worlds. * Don't apply CraftTweaker actions twice on single-player worlds.
# New features in CC: Tweaked 1.97.0
* Update several translations (Anavrins, Jummit, Naheulf).
* Add button to view a computer's folder to `/computercraft dump`.
* Allow cleaning dyed turtles in a cauldron.
* Add scale subcommand to `monitor` program (MCJack123).
* Add option to make `textutils.serialize` not write an indent (magiczocker10).
* Allow comparing vectors using `==` (fatboychummy).
* Improve HTTP error messages for SSL failures.
* Allow `craft` program to craft unlimited items (fatboychummy).
* Impose some limits on various command queues.
* Add buttons to shutdown and terminate to computer GUIs.
* Add program subcompletion to several programs (Wojbie).
* Update the `help` program to accept and (partially) highlight markdown files.
* Remove config option for the debug API.
* Allow setting the subprotocol header for websockets.
And several bug fixes:
* Fix NPE when using a treasure disk when no treasure disks are available.
* Prevent command computers discarding command ouput when certain game rules are off.
* Fix turtles not updating peripherals when upgrades are unequipped (Ronan-H).
* Fix computers not shutting down on fatal errors within the Lua VM.
* Speakers now correctly stop playing when broken, and sound follows noisy turtles and pocket computers.
* Update the `wget` to be more resiliant in the face of user-errors.
* Fix exiting `paint` typing "e" in the shell.
# New features in CC: Tweaked 1.96.0 # New features in CC: Tweaked 1.96.0
* Use lightGrey for folders within the "list" program. * Use lightGrey for folders within the "list" program.
@ -348,7 +322,7 @@ Several bug fixes:
# New features in CC: Tweaked 1.95.0 # New features in CC: Tweaked 1.95.0
* Optimise the paint program's initial render. * Optimise the paint program's initial render.
* Several documentation improvments (Gibbo3771, MCJack123). * Several documentation improvements (Gibbo3771, MCJack123).
* `fs.combine` now accepts multiple arguments. * `fs.combine` now accepts multiple arguments.
* Add a setting (`bios.strict_globals`) to error when accidentally declaring a global. (Lupus590). * Add a setting (`bios.strict_globals`) to error when accidentally declaring a global. (Lupus590).
* Add an improved help viewer which allows scrolling up and down (MCJack123). * Add an improved help viewer which allows scrolling up and down (MCJack123).
@ -388,7 +362,7 @@ And several bug fixes:
* Update Swedish translations (Granddave). * Update Swedish translations (Granddave).
* Printers use item tags to check dyes. * Printers use item tags to check dyes.
* HTTP rules may now be targetted for a specific port. * HTTP rules may now be targeted for a specific port.
* Don't propagate adjacent redstone signals through computers. * Don't propagate adjacent redstone signals through computers.
And several bug fixes: And several bug fixes:
@ -508,7 +482,7 @@ And several bug fixes:
- Add `utf8` lib. - Add `utf8` lib.
- Mirror Lua's behaviour of tail calls more closely. Native functions are no longer tail called, and tail calls are displayed in the stack trace. - Mirror Lua's behaviour of tail calls more closely. Native functions are no longer tail called, and tail calls are displayed in the stack trace.
- `table.unpack` now uses `__len` and `__index` metamethods. - `table.unpack` now uses `__len` and `__index` metamethods.
- Parser errors now include the token where the error occured. - Parser errors now include the token where the error occurred.
* Add `textutils.unserializeJSON`. This can be used to decode standard JSON and stringified-NBT. * Add `textutils.unserializeJSON`. This can be used to decode standard JSON and stringified-NBT.
* The `settings` API now allows "defining" settings. This allows settings to specify a default value and description. * The `settings` API now allows "defining" settings. This allows settings to specify a default value and description.
* Enable the motd on non-pocket computers. * Enable the motd on non-pocket computers.
@ -516,7 +490,7 @@ And several bug fixes:
* Add Danish and Korean translations (ChristianLW, mindy15963) * Add Danish and Korean translations (ChristianLW, mindy15963)
* Fire `mouse_up` events in the monitor program. * Fire `mouse_up` events in the monitor program.
* Allow specifying a timeout to `websocket.receive`. * Allow specifying a timeout to `websocket.receive`.
* Increase the maximimum limit for websocket messages. * Increase the maximum limit for websocket messages.
* Optimise capacity checking of computer/disk folders. * Optimise capacity checking of computer/disk folders.
And several bug fixes: And several bug fixes:

View File

@ -1,2 +1,2 @@
io is a standard Lua5.1 API, reimplemented for CraftOS. Not all the features are availiable. io is a standard Lua5.1 API, reimplemented for CraftOS. Not all the features are available.
Refer to http://www.lua.org/manual/5.1/ for more information. Refer to http://www.lua.org/manual/5.1/ for more information.

View File

@ -7,5 +7,5 @@ To terminate a program stuck in a loop, hold Ctrl+T for 1 second.
To quickly shutdown a computer, hold Ctrl+S for 1 second. To quickly shutdown a computer, hold Ctrl+S for 1 second.
To quickly reboot a computer, hold Ctrl+R for 1 second. To quickly reboot a computer, hold Ctrl+R for 1 second.
To learn about the programming APIs availiable, type "apis" or "help apis". To learn about the programming APIs available, type "apis" or "help apis".
If you get stuck, visit the forums at http://www.computercraft.info/ for advice and tutorials. If you get stuck, visit the forums at http://www.computercraft.info/ for advice and tutorials.

View File

@ -1,4 +1,4 @@
turtle is an api availiable on Turtles, which controls their movement. turtle is an api available on Turtles, which controls their movement.
Functions in the Turtle API: Functions in the Turtle API:
turtle.forward() turtle.forward()
turtle.back() turtle.back()

View File

@ -163,7 +163,7 @@ local function save(path)
end end
--[[ --[[
Draws colour picker sidebar, the pallette and the footer Draws colour picker sidebar, the palette and the footer
returns: nil returns: nil
]] ]]
local function drawInterface() local function drawInterface()

View File

@ -100,11 +100,11 @@ local items = {
["some wood"] = { ["some wood"] = {
aliases = { "wood" }, aliases = { "wood" },
material = true, material = true,
desc = "You could easilly craft this wood into planks.", desc = "You could easily craft this wood into planks.",
}, },
["some planks"] = { ["some planks"] = {
aliases = { "planks", "wooden planks", "wood planks" }, aliases = { "planks", "wooden planks", "wood planks" },
desc = "You could easilly craft these planks into sticks.", desc = "You could easily craft these planks into sticks.",
}, },
["some sticks"] = { ["some sticks"] = {
aliases = { "sticks", "wooden sticks", "wood sticks" }, aliases = { "sticks", "wooden sticks", "wood sticks" },
@ -255,7 +255,7 @@ local items = {
["some pork"] = { ["some pork"] = {
aliases = { "pork", "porkchops" }, aliases = { "pork", "porkchops" },
food = true, food = true,
desc = "Delicious and nutricious.", desc = "Delicious and nutritious.",
}, },
["some chicken"] = { ["some chicken"] = {
aliases = { "chicken" }, aliases = { "chicken" },
@ -1144,7 +1144,7 @@ function commands.help()
local sText = local sText =
"Welcome to adventure, the greatest text adventure game on CraftOS. " .. "Welcome to adventure, the greatest text adventure game on CraftOS. " ..
"To get around the world, type actions, and the adventure will " .. "To get around the world, type actions, and the adventure will " ..
"be read back to you. The actions availiable to you are go, look, inspect, inventory, " .. "be read back to you. The actions available to you are go, look, inspect, inventory, " ..
"take, drop, place, punch, attack, mine, dig, craft, build, eat and exit." "take, drop, place, punch, attack, mine, dig, craft, build, eat and exit."
print(sText) print(sText)
end end

View File

@ -66,7 +66,7 @@ elseif sCommand == "host" then
print("Opening channel on modem " .. sModemSide) print("Opening channel on modem " .. sModemSide)
modem.open(gps.CHANNEL_GPS) modem.open(gps.CHANNEL_GPS)
-- Serve requests indefinately -- Serve requests indefinitely
local nServed = 0 local nServed = 0
while true do while true do
local e, p1, p2, p3, p4, p5 = os.pullEvent("modem_message") local e, p1, p2, p3, p4, p5 = os.pullEvent("modem_message")

View File

@ -446,7 +446,7 @@ local function playGame()
end end
end end
end end
--now remove the rows and drop everythign else --now remove the rows and drop everything else
term.setBackgroundColor(colors.black) term.setBackgroundColor(colors.black)
for r = 1, #rows do for r = 1, #rows do
r = rows[r] r = rows[r]

View File

@ -93,13 +93,13 @@ local function collect()
return true return true
end end
function refuel(ammount) function refuel(amount)
local fuelLevel = turtle.getFuelLevel() local fuelLevel = turtle.getFuelLevel()
if fuelLevel == "unlimited" then if fuelLevel == "unlimited" then
return true return true
end end
local needed = ammount or xPos + zPos + depth + 2 local needed = amount or xPos + zPos + depth + 2
if turtle.getFuelLevel() < needed then if turtle.getFuelLevel() < needed then
for n = 1, 16 do for n = 1, 16 do
if turtle.getItemCount(n) > 0 then if turtle.getItemCount(n) > 0 then

View File

@ -1,7 +1,7 @@
# JSON Parsing Test Suite # JSON Parsing Test Suite
This is a collection of JSON test cases from [nst/JSONTestSuite][gh]. We simply This is a collection of JSON test cases from [nst/JSONTestSuite][gh]. We simply
determine whether an object is succesfully parsed or not, and do not check the determine whether an object is successfully parsed or not, and do not check the
contents. contents.
See `LICENSE` for copyright information. See `LICENSE` for copyright information.