Merge branch 'main' into TU43
This commit is contained in:
@@ -46,7 +46,6 @@ DWORD Level::tlsIdxLightCache = TlsAlloc();
|
||||
|
||||
// 4J : WESTY : Added for time played stats.
|
||||
#include "net.minecraft.stats.h"
|
||||
#include "../Minecraft.Client/MultiPlayerChunkCache.h"
|
||||
|
||||
// 4J - Caching of lighting data added. This is implemented as a 16x16x16 cache of ints (ie 16K storage in total). The index of the element to be used in the array is determined by the lower
|
||||
// four bits of each x/y/z position, and the upper 7/4/7 bits of the x/y/z positions are stored within the element itself along with the cached values etc. The cache can be enabled per thread by
|
||||
@@ -1338,7 +1337,7 @@ int Level::getBrightness(LightLayer::variety layer, int x, int y, int z)
|
||||
int idx = ix * chunkSourceXZSize + iz;
|
||||
LevelChunk *c = chunkSourceCache[idx];
|
||||
|
||||
if( c == nullptr) return (int)layer;
|
||||
if( c == nullptr ) return (int)layer;
|
||||
|
||||
if (y < 0) y = 0;
|
||||
if (y >= maxBuildHeight) y = maxBuildHeight - 1;
|
||||
|
||||
Reference in New Issue
Block a user