This commit is contained in:
Nikita Edel
2026-03-11 18:49:36 +01:00
parent cc65f7ee29
commit faa4a989ce
6 changed files with 19 additions and 10 deletions

View File

@@ -3228,7 +3228,7 @@ void Level::tickClientSideTiles(int xo, int zo, LevelChunk *lc)
if (delayUntilNextMoodSound == 0)
{
randValue = randValue * 3 + addend;
randValue = (unsigned) randValue * 3 + (unsigned) addend;
int val = (randValue >> 2);
int x = (val & 15);
int z = ((val >> 8) & 15);