mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-09-25 02:51:24 +00:00
fix: remove byte type alias
This commit is contained in:
@@ -15,10 +15,10 @@ FastNoise::FastNoise(Random *random, int levels)
|
||||
void FastNoise::init(Random *random, int levels)
|
||||
{
|
||||
this->levels = levels;
|
||||
noiseMaps = new byte *[levels];
|
||||
noiseMaps = new uint8_t *[levels];
|
||||
for (int i = 0; i < levels; i++)
|
||||
{
|
||||
noiseMaps[i] = new byte[0x100000];
|
||||
noiseMaps[i] = new uint8_t[0x100000];
|
||||
random->nextBytes(noiseMaps[i],0x100000);
|
||||
}
|
||||
}
|
||||
@@ -44,7 +44,7 @@ doubleArray FastNoise::getRegion(doubleArray buffer, double x, double y, double
|
||||
int BB = 21771;
|
||||
for (int i = 0; i < levels; i++)
|
||||
{
|
||||
byte *map = noiseMaps[i];
|
||||
uint8_t *map = noiseMaps[i];
|
||||
int pp = 0;
|
||||
|
||||
for (int zp = 0; zp < zSize; zp++)
|
||||
|
||||
Reference in New Issue
Block a user