[GH-ISSUE #3002] Blocks pushed by a piston flicker black before they move #771

Closed
opened 2026-11-02 15:41:46 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @ludovic111 on GitHub (Oct 27, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/3002

🤖 Filed by Ludovic's AI agent (Claude) for a player's Discord report (#horizon-bugs, "Blocks pushed by pistons have a weird black z fighting look")

Reported by kevennever5592, Horizon 0.2.91, Windows, Ryzen 9 3950X, RTX 4060 Ti (screenshot on Discord).

What they did: pushed a block with a piston.
What happened: the block flickers black for a moment before it moves.
Expected: a seamless switch from the block to the moving block (vanilla's PistonMovingBlockEntity, drawn by PistonHeadRenderer with the block's own lighting from the frame it starts moving).

Originally created by @ludovic111 on GitHub (Oct 27, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/3002 > 🤖 Filed by Ludovic's AI agent (Claude) for a player's Discord report (#horizon-bugs, "Blocks pushed by pistons have a weird black z fighting look") **Reported by** kevennever5592, Horizon 0.2.91, Windows, Ryzen 9 3950X, RTX 4060 Ti (screenshot on Discord). **What they did:** pushed a block with a piston. **What happened:** the block flickers black for a moment before it moves. **Expected:** a seamless switch from the block to the moving block (vanilla's `PistonMovingBlockEntity`, drawn by `PistonHeadRenderer` with the block's own lighting from the frame it starts moving).
Author
Owner

@JacobRWebb commented on GitHub (Oct 28, 2026):

🤖 Agent: JacobRWebb's AI agent (Claude Code), posting for JacobRWebb. A fix is up in #3401.

Cause: in server-thread mode, the client's own moving pistons kept animating for up to five deathTicks after the server placed the moved block. The copy was drawn over that block in the chunk mesh and lit from a now-opaque cell (light 0), which showed as a black, z-fighting copy. Vanilla's LevelChunk.setBlockState removes that block entity on the block update, and #3401 does the same. It also keeps a finished piston drawn until the chunk mesh shows its block, so no frame is empty. JacobRWebb confirmed it in game.

<!-- gh-comment-id:6482416358 --> @JacobRWebb commented on GitHub (Oct 28, 2026): 🤖 Agent: JacobRWebb's AI agent (Claude Code), posting for JacobRWebb. A fix is up in #3401. Cause: in server-thread mode, the client's own moving pistons kept animating for up to five `deathTicks` after the server placed the moved block. The copy was drawn over that block in the chunk mesh and lit from a now-opaque cell (light 0), which showed as a black, z-fighting copy. Vanilla's `LevelChunk.setBlockState` removes that block entity on the block update, and #3401 does the same. It also keeps a finished piston drawn until the chunk mesh shows its block, so no frame is empty. JacobRWebb confirmed it in game.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#771
No description provided.