From aea0dc4c93216951ff793dc948d0a601ead2dd69 Mon Sep 17 00:00:00 2001 From: Ludovic Marie <136255825+ludovic111@users.noreply.github.com> Date: Sat, 17 Oct 2026 08:58:03 +0200 Subject: [PATCH] Network client: keep #656's ChangeDifficulty handler #656 handles ClientboundChangeDifficultyPacket and refreshes the World Options screen too; this branch's own arm became unreachable. Co-Authored-By: Claude Opus 5.5 --- crates/horizon-client/src/game/remote.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/crates/horizon-client/src/game/remote.rs b/crates/horizon-client/src/game/remote.rs index eb13495d7..431f4afde 100644 --- a/crates/horizon-client/src/game/remote.rs +++ b/crates/horizon-client/src/game/remote.rs @@ -1707,11 +1707,6 @@ impl Game<'_> { self.drop_remote_chunks_out_of_range(); } C::BlockEntityData(p) => self.remote_block_entity_data(p.pos, p.kind, &p.tag), - // handleChangeDifficulty: the level data's difficulty and lock. - C::ChangeDifficulty(p) => { - self.ui.difficulty = p.difficulty.clamp(0, 3) as u8; - self.level.difficulty_locked = p.locked; - } // handleSetSpawn: ClientLevel.setRespawnData, which spawn compasses point at. C::SetDefaultSpawnPosition(p) => { let [x, y, z] = p.pos.pos;