feat: worldgeneration using decomp

This commit is contained in:
Lord_Cambion
2026-04-13 17:45:07 +02:00
parent 0606ce717d
commit b512cc8f11
54 changed files with 1265 additions and 816 deletions
+2 -2
View File
@@ -2,7 +2,7 @@
#include "System.h"
#include "net.minecraft.world.level.newbiome.layer.h"
FuzzyZoomLayer::FuzzyZoomLayer(int64_t seedMixup, shared_ptr<Layer>parent) : Layer(seedMixup)
FuzzyZoomLayer::FuzzyZoomLayer(int64_t seed, shared_ptr<Layer> parent, int64_t seedMixup) : Layer(seedMixup)
{
this->parent = parent;
}
@@ -66,7 +66,7 @@ shared_ptr<Layer>FuzzyZoomLayer::zoom(int64_t seed, shared_ptr<Layer>sup, int co
shared_ptr<Layer> result = sup;
for (int i = 0; i < count; i++)
{
result = std::make_shared<FuzzyZoomLayer>(seed + i, result);
result = std::make_shared<FuzzyZoomLayer>(seed, result, 0x7D0 + i);
}
return result;
}