EntityDamageByBlockEvent.getDamager() returning null for lava #11984
Labels
status: accepted
Disputed bug is accepted as valid or Feature accepted as desired to be added.
version: 1.21.4
Expected behavior
Up to version 1.21.1, EntityDamageByBlockEvent.getDamager() returns the block responsible for the damage dealt as a valid Block object for damage caused by lava. I therefore expected it to work that way in newer versions too, as it's most certainly the expected behavior of this method in this case.
Observed/Actual behavior
On 1.21.3+, EntityDamageByBlockEvent.getDamager() just returns null for damage caused by lava.
Steps/models to reproduce
Here's what I did:
Create 2 localhost servers, one with PaperMC 1.21.1 and the other one with PaperMC 1.21.3 (newest builds).
(no changes to those servers except accepting the eula)
Create a minimalistic plugin to log EntityDamageByBlockEvent.getDamager().
Join both servers, grab a bucket of lava and take a bath.
Compare console output:
1.21.1:
CraftBlock{...}
1.21.3:
null
Plugin and Datapack List
Just the minimalistic logging plugin:
Paper version
1.21.1#132 & 1.21.3#82
Other
No response
The text was updated successfully, but these errors were encountered: