TU19: merge Minecraft.World/Blocks

This commit is contained in:
Tropical
2026-03-21 15:52:50 -05:00
parent f25cd66f4d
commit 9b6046cb83
242 changed files with 8083 additions and 4657 deletions

View File

@@ -2,7 +2,8 @@
#include "../Headers/net.minecraft.world.level.h"
#include "LadderTile.h"
LadderTile::LadderTile(int id) : Tile(id, Material::decoration, false) {}
LadderTile::LadderTile(int id)
: Tile(id, Material::decoration, false) {}
AABB* LadderTile::getAABB(Level* level, int x, int y, int z) {
updateShape(level, x, y, z);
@@ -80,10 +81,10 @@ void LadderTile::neighborChanged(Level* level, int x, int y, int z, int type) {
if (face == 5 && level->isSolidBlockingTile(x - 1, y, z)) ok = true;
if (!ok) {
spawnResources(level, x, y, z, face, 0);
level->setTile(x, y, z, 0);
level->removeTile(x, y, z);
}
Tile::neighborChanged(level, x, y, z, type);
}
int LadderTile::getResourceCount(Random* random) { return 1; }
int LadderTile::getResourceCount(Random* random) { return 1; }