ghost segfault???????

This commit is contained in:
JuiceyDev 2026-03-30 00:36:50 +02:00 committed by Tropical
parent c6fa51d592
commit 3986e4642b

View file

@ -646,13 +646,11 @@ void LevelRenderer::renderEntities(Vec3* cam, Culler* culler, float a) {
if (!isGlobalIndexInSameDimension(idx, level[playerIndex])) continue;
for (AUTO_VAR(it2, it->second.tiles.begin());
it2 != it->second.tiles.end();
it2++) {
it2 != it->second.tiles.end(); it2++) {
TileEntityRenderDispatcher::instance->render(*it2, a);
}
}
LeaveCriticalSection(&m_csRenderableTileEntities);
mc->gameRenderer->turnOffLightLayer(a); // 4J - brought forward from 1.8.2
@ -874,9 +872,9 @@ int LevelRenderer::renderChunks(int from, int to, int layer, double alpha) {
// 4jcraft: replaced glPushMatrix/glTranslatef/glPopMatrix per chunk
// no more full MVP upload per chunk, can also be bkwards compat
RenderManager.SetChunkOffset((float)pClipChunk->chunk->x,
(float)pClipChunk->chunk->y,
(float)pClipChunk->chunk->z);
RenderManager.SetChunkOffset((float)chunk->chunk->x,
(float)chunk->chunk->y,
(float)chunk->chunk->z);
if (RenderManager.CBuffCall(list, first)) {
first = false;
@ -4229,7 +4227,8 @@ void LevelRenderer::fullyFlagRenderableTileEntitiesToBeRemoved() {
RenderableTileEntityBucket& bucket = itChunk->second;
for (AUTO_VAR(itPending, itKey->second.begin());
itPending != itKey->second.end(); itPending++) {
if (bucket.indexByTile.find(*itPending) == bucket.indexByTile.end()) {
if (bucket.indexByTile.find(*itPending) ==
bucket.indexByTile.end()) {
continue;
}