From f3ed3d26c825ee3d79dd829bc12cabbdfbeb63b4 Mon Sep 17 00:00:00 2001 From: KotIsOff Date: Tue, 14 Oct 2025 20:46:38 +0300 Subject: [PATCH] typo: greather => greater --- doc/en/scripting/builtins/libblock.md | 2 +- src/content/ContentPack.hpp | 8 ++++---- src/content/ContentPackVersion.hpp | 4 ++-- src/graphics/core/Atlas.hpp | 2 +- src/graphics/render/Decorator.cpp | 2 +- src/graphics/ui/elements/TextBox.hpp | 2 +- src/logic/scripting/lua/usertypes/lua_type_heightmap.cpp | 2 +- src/voxels/Block.hpp | 2 +- 8 files changed, 12 insertions(+), 12 deletions(-) diff --git a/doc/en/scripting/builtins/libblock.md b/doc/en/scripting/builtins/libblock.md index 044555c4..4ad46f14 100644 --- a/doc/en/scripting/builtins/libblock.md +++ b/doc/en/scripting/builtins/libblock.md @@ -101,7 +101,7 @@ block.set_rotation(x: int, y: int, z: int, rotation: int) ## Extended blocks -Extended blocks are blocks with size greather than 1x1x1 +Extended blocks are blocks with size greater than 1x1x1 ```lua -- Checks whether the block is extended. diff --git a/src/content/ContentPack.hpp b/src/content/ContentPack.hpp index bcc91ecb..a4548d03 100644 --- a/src/content/ContentPack.hpp +++ b/src/content/ContentPack.hpp @@ -27,15 +27,15 @@ public: }; enum class VersionOperator { - EQUAL, GREATHER, LESS, - GREATHER_OR_EQUAL, LESS_OR_EQUAL + EQUAL, GREATER, LESS, + GREATER_OR_EQUAL, LESS_OR_EQUAL }; VC_ENUM_METADATA(VersionOperator) {"=", VersionOperator::EQUAL}, - {">", VersionOperator::GREATHER}, + {">", VersionOperator::GREATER}, {"<", VersionOperator::LESS}, - {">=", VersionOperator::GREATHER_OR_EQUAL}, + {">=", VersionOperator::GREATER_OR_EQUAL}, {"<=", VersionOperator::LESS_OR_EQUAL}, VC_ENUM_END diff --git a/src/content/ContentPackVersion.hpp b/src/content/ContentPackVersion.hpp index 54deaf3c..0d8a2ba2 100644 --- a/src/content/ContentPackVersion.hpp +++ b/src/content/ContentPackVersion.hpp @@ -37,13 +37,13 @@ public: switch (op) { case VersionOperator::EQUAL: return *this == other; - case VersionOperator::GREATHER: + case VersionOperator::GREATER: return *this > other; case VersionOperator::LESS: return *this < other; case VersionOperator::LESS_OR_EQUAL: return *this <= other; - case VersionOperator::GREATHER_OR_EQUAL: + case VersionOperator::GREATER_OR_EQUAL: return *this >= other; default: return false; diff --git a/src/graphics/core/Atlas.hpp b/src/graphics/core/Atlas.hpp index 2e563e8a..af3e4721 100644 --- a/src/graphics/core/Atlas.hpp +++ b/src/graphics/core/Atlas.hpp @@ -54,7 +54,7 @@ public: /// @brief Build atlas from all added images /// @param extrusion textures extrusion pixels - /// (greather is less mip-mapping artifacts) + /// (greater is less mip-mapping artifacts) /// @param prepare generate atlas texture (calls .prepare()) /// @param maxResolution max atlas resolution std::unique_ptr build(uint extrusion, bool prepare=true, uint maxResolution=0); diff --git a/src/graphics/render/Decorator.cpp b/src/graphics/render/Decorator.cpp index 4742b68f..94b8ee13 100644 --- a/src/graphics/render/Decorator.cpp +++ b/src/graphics/render/Decorator.cpp @@ -25,7 +25,7 @@ namespace fs = std::filesystem; -/// @brief Not greather than 64 for this BIG_PRIME value +/// @brief Not greater than 64 for this BIG_PRIME value inline constexpr int UPDATE_AREA_DIAMETER = 32; /// @brief Number of blocks in the volume inline constexpr int UPDATE_BLOCKS = diff --git a/src/graphics/ui/elements/TextBox.hpp b/src/graphics/ui/elements/TextBox.hpp index c4b88f90..d5b640ac 100644 --- a/src/graphics/ui/elements/TextBox.hpp +++ b/src/graphics/ui/elements/TextBox.hpp @@ -44,7 +44,7 @@ namespace gui { runnable onDownPressed; /// @brief Is current input valid bool valid = true; - /// @brief Text input pointer, value may be greather than text length + /// @brief Text input pointer, value may be greater than text length size_t caret = 0; /// @brief Actual local (line) position of the caret on vertical move size_t maxLocalCaret = 0; diff --git a/src/logic/scripting/lua/usertypes/lua_type_heightmap.cpp b/src/logic/scripting/lua/usertypes/lua_type_heightmap.cpp index 290e1345..3e015b72 100644 --- a/src/logic/scripting/lua/usertypes/lua_type_heightmap.cpp +++ b/src/logic/scripting/lua/usertypes/lua_type_heightmap.cpp @@ -272,7 +272,7 @@ static int l_meta_meta_call(lua::State* L) { auto width = tointeger(L, 2); auto height = tointeger(L, 3); if (width <= 0 || height <= 0) { - throw std::runtime_error("width and height must be greather than 0"); + throw std::runtime_error("width and height must be greater than 0"); } return newuserdata( L, static_cast(width), static_cast(height) diff --git a/src/voxels/Block.hpp b/src/voxels/Block.hpp index 3dbd1cf0..59115e84 100644 --- a/src/voxels/Block.hpp +++ b/src/voxels/Block.hpp @@ -276,7 +276,7 @@ public: /// @brief does the block emit any lights bool emissive = false; - // @brief block size is greather than 1x1x1 + // @brief block size is greater than 1x1x1 bool extended = false; /// @brief set of hitboxes sets with all coord-systems precalculated