mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-05-25 22:46:46 +00:00
chore: format Minecraft.World
This commit is contained in:
@@ -4,23 +4,18 @@
|
||||
|
||||
byteArray BlockReplacements::replacements = byteArray(256);
|
||||
|
||||
void BlockReplacements::staticCtor()
|
||||
{
|
||||
for (int i = 0; i < 256; i++)
|
||||
{
|
||||
uint8_t b = (uint8_t) i;
|
||||
if (b != 0 && Tile::tiles[b & 0xff] == NULL)
|
||||
{
|
||||
void BlockReplacements::staticCtor() {
|
||||
for (int i = 0; i < 256; i++) {
|
||||
uint8_t b = (uint8_t)i;
|
||||
if (b != 0 && Tile::tiles[b & 0xff] == NULL) {
|
||||
b = 0;
|
||||
}
|
||||
BlockReplacements::replacements[i] = b;
|
||||
}
|
||||
}
|
||||
|
||||
void BlockReplacements::replace(byteArray blocks)
|
||||
{
|
||||
for (unsigned int i = 0; i < blocks.length; i++)
|
||||
{
|
||||
void BlockReplacements::replace(byteArray blocks) {
|
||||
for (unsigned int i = 0; i < blocks.length; i++) {
|
||||
blocks[i] = replacements[blocks[i] & 0xff];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user