fix: resolve all build warnings and notes

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

No files matched your search

@@ -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);
}
}