Skip to content

Cancelling PlayerTeleportEvent when farmland block converts to dirt makes the player instantly die #12696

@ppmvn

Description

@ppmvn

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

  1. Make a dummy plugin which cancels PlayerTeleportEvent
  2. Give yourself a farmland block
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: acceptedDisputed bug is accepted as valid or Feature accepted as desired to be added.version: 1.21.4Game version 1.21.4

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions