typo: greather => greater
This commit is contained in:
parent
5755c616f3
commit
f3ed3d26c8
@ -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.
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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<Atlas> build(uint extrusion, bool prepare=true, uint maxResolution=0);
|
||||
|
||||
@ -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 =
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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<LuaHeightmap>(
|
||||
L, static_cast<uint>(width), static_cast<uint>(height)
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user