1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-10-22 09:27:39 +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
23 changed files with 38 additions and 64 deletions

View File

@@ -82,10 +82,10 @@ public class UpgradesLoadedMessage implements NetworkMessage<ClientNetworkContex
var serialiser = entry.getValue().serialiser();
@SuppressWarnings("unchecked")
var unwrapedSerialiser = (UpgradeSerialiser<T>) serialiser;
var unwrappedSerialiser = (UpgradeSerialiser<T>) serialiser;
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());
}

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.
* @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.
* @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
* 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 [2] false If we could not equip the item.
* @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
* 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 [2] false If we could not equip the item.
* @cc.treturn [2] string The reason equipping this item failed.

View File

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