mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-05-25 23:17:06 +00:00
Not to mention most commit messages are just things like "skjdfhaufhafalkfjdashf".
This commit is contained in:
@@ -10,6 +10,11 @@
|
||||
#include "../../Minecraft.World/Blocks/Tile.h"
|
||||
#include "../../Minecraft.World/Level/WaterLevelChunk.h"
|
||||
|
||||
#if defined(__EMSCRIPTEN__)
|
||||
// eh... I should've enabled wasm64
|
||||
#define InterlockedCompareExchangeRelease InterlockedCompareExchangeRelease64
|
||||
#endif
|
||||
|
||||
MultiPlayerChunkCache::MultiPlayerChunkCache(Level* level) {
|
||||
XZSIZE = level->dimension->getXZSize(); // 4J Added
|
||||
XZOFFSET = XZSIZE / 2; // 4J Added
|
||||
@@ -295,4 +300,4 @@ void MultiPlayerChunkCache::dataReceived(int x, int z) {
|
||||
if ((iz < 0) || (iz >= XZSIZE)) return;
|
||||
int idx = ix * XZSIZE + iz;
|
||||
hasData[idx] = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user