mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-07-18 09:58:15 +00:00
refactor: nuke __int64/__uint64 in Minecraft.World
This commit is contained in:
@@ -134,10 +134,10 @@ TilePos* StructureFeature::getNearestGeneratedFeature(Level* level, int cellX,
|
||||
this->level = level;
|
||||
|
||||
random->setSeed(level->getSeed());
|
||||
__int64 xScale = random->nextLong();
|
||||
__int64 zScale = random->nextLong();
|
||||
__int64 xx = (cellX >> 4) * xScale;
|
||||
__int64 zz = (cellZ >> 4) * zScale;
|
||||
int64_t xScale = random->nextLong();
|
||||
int64_t zScale = random->nextLong();
|
||||
int64_t xx = (cellX >> 4) * xScale;
|
||||
int64_t zz = (cellZ >> 4) * zScale;
|
||||
random->setSeed(xx ^ zz ^ level->getSeed());
|
||||
|
||||
addFeature(level, cellX >> 4, cellZ >> 4, 0, 0, byteArray());
|
||||
|
||||
Reference in New Issue
Block a user