fix: resolve all build warnings and notes

This commit is contained in:
MatthewBeshay
2026-03-23 18:53:18 +11:00
parent 7a35d1caa2
commit fed9cf2d95
45 changed files with 294 additions and 244 deletions

View File

@@ -78,8 +78,10 @@ void PistonMovingPiece::spawnResources(Level* level, int x, int y, int z,
void PistonMovingPiece::neighborChanged(Level* level, int x, int y, int z,
int type) {
if (!level->isClientSide) {
level->getTileEntity(x, y, z) == NULL;
if (!level->isClientSide && level->getTileEntity(x, y, z) == nullptr) {
// 4jcraft: remove orphaned moving piston blocks once their tile entity
// has already vanished, matching the cleanup path used on interaction.
level->removeTile(x, y, z);
}
}