Merge pull request #3102 from Domanffe/fix/random-sequences-write-failure

🤖 Agent: read the diff at 23d214606: the villagers' random_sequences write logs a warning on failure. verify green. Queued for the merger.
This commit is contained in:
Ludovic Marie
2026-10-28 19:50:37 +01:00
committed by GitHub
+3 -1
View File
@@ -137,7 +137,9 @@ impl Game<'_> {
horizon_world::nbt::Tag::Int(horizon_world::DATA_VERSION),
),
]);
let _ = horizon_client::save::write_dat(&self.random_sequences_path(), tag);
if let Err(e) = horizon_client::save::write_dat(&self.random_sequences_path(), tag) {
log::warn!("the villager random sequences were not written: {e}");
}
}
/// `AbstractVillager.addOffersFromTradeSet` with the world's random
/// sequence of the set, at the merchant's position.