Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EntityDamageEvent spams itself #12156

Closed
F1sts opened this issue Feb 20, 2025 · 0 comments
Closed

EntityDamageEvent spams itself #12156

F1sts opened this issue Feb 20, 2025 · 0 comments
Labels
resolution: duplicate Issue or Request is a copy of an existing ticket. version: 1.21.4 Game version 1.21.4

Comments

@F1sts
Copy link

F1sts commented Feb 20, 2025

Expected behavior

it shouldn't spam itself

Observed/Actual behavior

it spamming itself continuously until you take a step back from the damager block (like magma, cactus, campfire etc.)

Steps/models to reproduce

in EntityDamageEvent, just make the damage lower than 1 by using event.setDamage (like 0.9). then, just jump on a damager block (like magma, cactus, campfire etc.). and don't forget to make an output next to it, so you can see it's spamming itself.

Example Code:
public void test(EntityDamageEvent event) {
Bukkit.getServer().broadcast(Component.text("hit."))
event.setDamage(0.9) // - bug starts when you set this lower than 1
}

Plugin and Datapack List

nothing, just a clean server with my test plugin.

Paper version

This server is running Paper version 1.21.4-174-main@5e2a3bc (2025-02-20T09:56:44Z) (Implementing API version 1.21.4-R0.1-SNAPSHOT)

Other

I've tried it in multiple versions but problem still exists. (in 1.21.1, 1.21.3, 1.21.4)

@papermc-sniffer papermc-sniffer bot added the version: 1.21.4 Game version 1.21.4 label Feb 20, 2025
@Warriorrrr Warriorrrr added resolution: duplicate Issue or Request is a copy of an existing ticket. and removed status: needs triage labels Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
resolution: duplicate Issue or Request is a copy of an existing ticket. version: 1.21.4 Game version 1.21.4
Projects
None yet
Development

No branches or pull requests

3 participants