Description
Expected behavior
When farmland block converts to a dirt block and a player is standing on it, cancelling PlayerTeleportEvent shouldn't cause the player to instantly die, but instead either not fire the PlayerTeleportEvent at all when pushing the player up or add another teleport cause (as right now the teleport cause is unknown) and make it so it cannot be cancelled (or just make it so the player doesn't die if cancelled).
Observed/Actual behavior
When farmland block converts to a dirt block and a player is standing on it and the PlayerTeleportEvent gets cancelled the player instantly dies (teleports in void?).
Steps/models to reproduce
- Make a dummy plugin which cancels PlayerTeleportEvent
- Give yourself a farmland block
- Jump on it
Plugin and Datapack List
Dummy plugin for cancelling the PlayerTeleportEvent
Paper version
This server is running Paper version 1.21.4-232-ver/1.21.4@12d8fe0 (2025-06-09T10:15:42Z) (Implementing API version 1.21.4-R0.1-SNAPSHOT)
You are running the latest version
Previous version: 1.21-DEV-81bc9ba (MC: 1.21)
Other
This did not happen on version 1.21.1, but only when we switched to 1.21.4.