mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-07-17 18:38:13 +00:00
chore: format Minecraft.World
This commit is contained in:
@@ -1,20 +1,14 @@
|
||||
#include "../../Platform/stdafx.h"
|
||||
#include "../../Headers/net.minecraft.world.level.newbiome.layer.h"
|
||||
|
||||
FlatLayer::FlatLayer(int val) : Layer(0)
|
||||
{
|
||||
this->val = val;
|
||||
}
|
||||
FlatLayer::FlatLayer(int val) : Layer(0) { this->val = val; }
|
||||
|
||||
intArray FlatLayer::getArea(int xo, int yo, int w, int h)
|
||||
{
|
||||
intArray result = IntCache::allocate(w * h);
|
||||
for (int y = 0; y < h; y++)
|
||||
{
|
||||
for (int x = 0; x < w; x++)
|
||||
{
|
||||
result[x + y * w] = val;
|
||||
}
|
||||
}
|
||||
return result;
|
||||
intArray FlatLayer::getArea(int xo, int yo, int w, int h) {
|
||||
intArray result = IntCache::allocate(w * h);
|
||||
for (int y = 0; y < h; y++) {
|
||||
for (int x = 0; x < w; x++) {
|
||||
result[x + y * w] = val;
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
Reference in New Issue
Block a user