aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/TheEndLevelRandomLevelSource.cpp
diff options
context:
space:
mode:
authorvoid_17 <61356189+void2012@users.noreply.github.com>2026-03-07 03:31:30 +0700
committerGitHub <noreply@github.com>2026-03-07 03:31:30 +0700
commit988e3042e00485aa7ed3725fe7bfde1da8cf8519 (patch)
treecf712d80b4d03eec73f935e0cce23020ddb6f5ef /Minecraft.World/TheEndLevelRandomLevelSource.cpp
parent175fc3824e502ecd701c1da2ecd2061d77495693 (diff)
Remove all MSVC `__int64` (#742)
Diffstat (limited to 'Minecraft.World/TheEndLevelRandomLevelSource.cpp')
-rw-r--r--Minecraft.World/TheEndLevelRandomLevelSource.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Minecraft.World/TheEndLevelRandomLevelSource.cpp b/Minecraft.World/TheEndLevelRandomLevelSource.cpp
index 67d85a92..f9f38470 100644
--- a/Minecraft.World/TheEndLevelRandomLevelSource.cpp
+++ b/Minecraft.World/TheEndLevelRandomLevelSource.cpp
@@ -9,7 +9,7 @@
#include "net.minecraft.world.level.storage.h"
#include "TheEndLevelRandomLevelSource.h"
-TheEndLevelRandomLevelSource::TheEndLevelRandomLevelSource(Level *level, __int64 seed)
+TheEndLevelRandomLevelSource::TheEndLevelRandomLevelSource(Level *level, int64_t seed)
{
m_XZSize = END_LEVEL_MIN_WIDTH;
@@ -370,10 +370,10 @@ void TheEndLevelRandomLevelSource::postProcess(ChunkSource *parent, int xt, int
// 4J - added. The original java didn't do any setting of the random seed here, and passes the level random to the biome decorator.
// We'll be running our postProcess in parallel with getChunk etc. so we need to use a separate random - have used the same initialisation code as
- // used in RandomLevelSource::postProcess to make sure this random value is consistent for each world generation.
+ // used in RandomLevelSource::postProcess to make sure this random value is consistent for each world generation.
pprandom->setSeed(level->getSeed());
- __int64 xScale = pprandom->nextLong() / 2 * 2 + 1;
- __int64 zScale = pprandom->nextLong() / 2 * 2 + 1;
+ int64_t xScale = pprandom->nextLong() / 2 * 2 + 1;
+ int64_t zScale = pprandom->nextLong() / 2 * 2 + 1;
pprandom->setSeed(((xt * xScale) + (zt * zScale)) ^ level->getSeed());
Biome *biome = level->getBiome(xo + 16, zo + 16);