diff --git a/projects/common-api/src/main/java/dan200/computercraft/api/turtle/TurtleSide.java b/projects/common-api/src/main/java/dan200/computercraft/api/turtle/TurtleSide.java index b8aac57d5..66f36ec95 100644 --- a/projects/common-api/src/main/java/dan200/computercraft/api/turtle/TurtleSide.java +++ b/projects/common-api/src/main/java/dan200/computercraft/api/turtle/TurtleSide.java @@ -5,7 +5,7 @@ package dan200.computercraft.api.turtle; /** - * An enum representing the two sides of the turtle that a turtle turtle might reside. + * An enum representing the two sides of the turtle that a turtle upgrade might reside. */ public enum TurtleSide { /** diff --git a/projects/common/src/main/java/dan200/computercraft/shared/command/text/TableBuilder.java b/projects/common/src/main/java/dan200/computercraft/shared/command/text/TableBuilder.java index 2428e5637..dbf719d12 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/command/text/TableBuilder.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/command/text/TableBuilder.java @@ -63,7 +63,7 @@ public class TableBuilder { /** * Get the number of columns for this table. *
- * This will be the same as {@link #getHeaders()}'s length if it is is non-{@code null}, + * This will be the same as {@link #getHeaders()}'s length if it is non-{@code null}, * otherwise the length of the first column. * * @return The number of columns. diff --git a/projects/common/src/main/java/dan200/computercraft/shared/computer/blocks/AbstractComputerBlockEntity.java b/projects/common/src/main/java/dan200/computercraft/shared/computer/blocks/AbstractComputerBlockEntity.java index 07db76314..e0f5e688b 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/computer/blocks/AbstractComputerBlockEntity.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/computer/blocks/AbstractComputerBlockEntity.java @@ -110,7 +110,7 @@ public abstract class AbstractComputerBlockEntity extends BlockEntity implements fresh = false; computerID = computer.getID(); - // If the on state has changed, mark as as dirty. + // If the on state has changed, mark as dirty. var newOn = computer.isOn(); if (on != newOn) { on = newOn; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/turtle/apis/TurtleAPI.java b/projects/common/src/main/java/dan200/computercraft/shared/turtle/apis/TurtleAPI.java index 885235d37..b1ad1af39 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/turtle/apis/TurtleAPI.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/turtle/apis/TurtleAPI.java @@ -345,7 +345,7 @@ public class TurtleAPI implements ILuaAPI { * For instance, if a slot contains 13 blocks of dirt, it has room for another 51. * * @param slot The slot we wish to check. Defaults to the {@link #select selected slot}. - * @return The space left in in this slot. + * @return The space left in this slot. * @throws LuaException If the slot is out of range. */ @LuaFunction diff --git a/projects/core-api/src/main/java/dan200/computercraft/api/peripheral/IPeripheral.java b/projects/core-api/src/main/java/dan200/computercraft/api/peripheral/IPeripheral.java index 1a857d8d0..ca3123a61 100644 --- a/projects/core-api/src/main/java/dan200/computercraft/api/peripheral/IPeripheral.java +++ b/projects/core-api/src/main/java/dan200/computercraft/api/peripheral/IPeripheral.java @@ -38,7 +38,7 @@ public interface IPeripheral { } /** - * Is called when when a computer is attaching to the peripheral. + * Is called when a computer is attaching to the peripheral. *
* This will occur when a peripheral is placed next to an active computer, when a computer is turned on next to a
* peripheral, when a turtle travels into a square next to a peripheral, or when a wired modem adjacent to this
diff --git a/projects/core/src/main/java/dan200/computercraft/core/apis/OSAPI.java b/projects/core/src/main/java/dan200/computercraft/core/apis/OSAPI.java
index c0d8b047d..e31f76d73 100644
--- a/projects/core/src/main/java/dan200/computercraft/core/apis/OSAPI.java
+++ b/projects/core/src/main/java/dan200/computercraft/core/apis/OSAPI.java
@@ -298,7 +298,7 @@ public class OSAPI implements ILuaAPI {
* textutils.formatTime(os.time())
* }
* @cc.since 1.2
- * @cc.changed 1.80pr1 Add support for getting the local local and UTC time.
+ * @cc.changed 1.80pr1 Add support for getting the local and UTC time.
* @cc.changed 1.82.0 Arguments are now case insensitive.
* @cc.changed 1.83.0 {@link #time(IArguments)} now accepts table arguments and converts them to UNIX timestamps.
* @see #date To get a date table that can be converted with this function.
diff --git a/projects/core/src/main/java/dan200/computercraft/core/apis/http/options/AddressPredicate.java b/projects/core/src/main/java/dan200/computercraft/core/apis/http/options/AddressPredicate.java
index eb1d284ef..46bce96be 100644
--- a/projects/core/src/main/java/dan200/computercraft/core/apis/http/options/AddressPredicate.java
+++ b/projects/core/src/main/java/dan200/computercraft/core/apis/http/options/AddressPredicate.java
@@ -57,7 +57,7 @@ interface AddressPredicate {
prefixSize = Integer.parseInt(prefixSizeStr);
} catch (NumberFormatException e) {
throw new InvalidRuleException(String.format(
- "Invalid host host '%s': Cannot extract size of CIDR mask from '%s'.",
+ "Invalid host '%s': Cannot extract size of CIDR mask from '%s'.",
addressStr + '/' + prefixSizeStr, prefixSizeStr
));
}
diff --git a/projects/core/src/main/java/dan200/computercraft/core/asm/Generator.java b/projects/core/src/main/java/dan200/computercraft/core/asm/Generator.java
index 8124a54c4..3272b3bc2 100644
--- a/projects/core/src/main/java/dan200/computercraft/core/asm/Generator.java
+++ b/projects/core/src/main/java/dan200/computercraft/core/asm/Generator.java
@@ -270,7 +270,7 @@ final class Generator