fix: tutorial

items actually appear now yay
item frames though...
This commit is contained in:
Fireblade
2026-05-03 01:43:43 -04:00
parent 229d22ab7b
commit a7cad496e3
7 changed files with 759 additions and 7 deletions
+6 -3
View File
@@ -207,7 +207,9 @@ void LiquidTileDynamic::trySpreadTo(Level *level, int x, int y, int z, int fromX
}
else
{
Tile::tiles[old]->spawnResources(level, x, y, z, level->getData(x, y, z), 0);
Tile *tile = Tile::tiles[old];
if (tile == nullptr) return; // tu31 tutorial world fix
tile->spawnResources(level, x, y, z, level->getData(x, y, z), 0);
}
}
}
@@ -317,8 +319,9 @@ bool LiquidTileDynamic::isWaterBlocking(Level *level, int x, int y, int z)
{
return true;
}
if (t == 0) return false;
Material *m = Tile::tiles[t]->material;
Tile *tile = Tile::tiles[t];
if (t == 0 || tile == nullptr) return false; // tu31 tutorial world fix
Material *m = tile->material;
if (m == Material::portal) return true;
if (m->blocksMotion()) return true;
return false;