mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-12 17:21:55 +00:00
chore: format Minecraft.World
This commit is contained in:
@@ -2,20 +2,17 @@
|
||||
#include "../../Headers/net.minecraft.world.level.biome.h"
|
||||
#include "../../Headers/net.minecraft.world.level.newbiome.layer.h"
|
||||
|
||||
DownfallLayer::DownfallLayer(std::shared_ptr<Layer>parent) : Layer(0)
|
||||
{
|
||||
this->parent = parent;
|
||||
DownfallLayer::DownfallLayer(std::shared_ptr<Layer> parent) : Layer(0) {
|
||||
this->parent = parent;
|
||||
}
|
||||
|
||||
intArray DownfallLayer::getArea(int xo, int yo, int w, int h)
|
||||
{
|
||||
intArray b = parent->getArea(xo, yo, w, h);
|
||||
intArray DownfallLayer::getArea(int xo, int yo, int w, int h) {
|
||||
intArray b = parent->getArea(xo, yo, w, h);
|
||||
|
||||
intArray result = IntCache::allocate(w * h);
|
||||
for (int i = 0; i < w * h; i++)
|
||||
{
|
||||
result[i] = Biome::biomes[b[i]]->getDownfallInt();
|
||||
}
|
||||
intArray result = IntCache::allocate(w * h);
|
||||
for (int i = 0; i < w * h; i++) {
|
||||
result[i] = Biome::biomes[b[i]]->getDownfallInt();
|
||||
}
|
||||
|
||||
return result;
|
||||
return result;
|
||||
}
|
||||
Reference in New Issue
Block a user