FEAT: Player data saving/loading

This commit is contained in:
Kolyah35
2026-03-27 21:26:25 +03:00
parent 6957f144e1
commit 61a2349b8b
7 changed files with 146 additions and 3 deletions

View File

@@ -68,6 +68,7 @@ bool SurvivalMode::destroyBlock( int x, int y, int z, int face ) {
minecraft->player->inventory->clearSlot(minecraft->player->inventory->selected);
}
}
if (changed && couldDestroy) {
ItemInstance instance(t, 1, data);
Tile::tiles[t]->playerDestroy(minecraft->level, minecraft->player, x, y, z, data);