Skip to content

Commit

Permalink
fix: remove debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
OEOTYAN committed Feb 13, 2024
1 parent 7452043 commit 3acde86
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions src/mc/world/level/levelgen/flat/FlatWorldGenerator.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
#include "mc/_HeaderOutputPredefine.h"
#include "mc/world/level/biome/source/FixedBiomeSource.h"
#include "mc/world/level/block/BlockVolume.h"
#include "mc/world/level/chunk/LevelChunk.h"
#include "mc/world/level/levelgen/v1/ChunkLocalNoiseCache.h"
#include "mc/world/level/levelgen/v1/WorldGenCache.h"

// auto generated inclusion list
#include "mc/deps/core/utility/buffer_span.h"
Expand Down Expand Up @@ -81,22 +78,7 @@ class FlatWorldGenerator : public ::WorldGenerator {
virtual bool postProcess(class ChunkViewSource&);

// vIndex: 11, symbol: ?loadChunk@FlatWorldGenerator@@UEAAXAEAVLevelChunk@@_N@Z
virtual void loadChunk(class LevelChunk& levelChunk, bool unk) {
auto chunkPos = levelChunk.getPosition();
auto blockPos = BlockPos(chunkPos, 0);
DividedPos2d<4> dividedPos2D;
dividedPos2D.x = (blockPos.x>>31) - ((blockPos.x>>31) - blockPos.x)/4;
dividedPos2D.z = (blockPos.z>>31) - ((blockPos.z>>31) - blockPos.z)/4;
SurfaceLevelCache surfaceLevelCache(dividedPos2D, mUnk, 4);
WorldGenerator::prepareStructureFeatureBlueprints(*mDimension, chunkPos, getBiomeSource(), surfaceLevelCache);
levelChunk.setBlockVolume(mPrototype, 0);
levelChunk.recomputeHeightMap(0);
mBiomeSource = std::make_unique<FixedBiomeSource>();
ChunkLocalNoiseCache chunkLocalNoiseCache;
mBiomeSource->fillBiomes(levelChunk, chunkLocalNoiseCache);
levelChunk.setSaved();
levelChunk.changeState(ChunkState::Generating, ChunkState::Generated);
};
virtual void loadChunk(class LevelChunk&, bool);

// symbol: ??0FlatWorldGenerator@@QEAA@AEAVDimension@@IAEBVValue@Json@@@Z
MCAPI FlatWorldGenerator(class Dimension& dimension, uint, class Json::Value const& generationOptionsJSON);
Expand Down

0 comments on commit 3acde86

Please sign in to comment.