PaperMC/patches
Bjarne Koll cb518f9878 Only skip damage tick if damage is unmodified zero (#11058)
Only skip the damage tick logic on player entities if the original
damage was zero and was not modified by plugins down the line.

This way all the following three scenarios trigger the damage tick

  a) vanilla damage was 0, plugin set it to non zero
  b) vanilla damage was non zero, plugin did not modify it
  c) vanilla damage was non zero, plugin set it to zero.

Regarding case c, the argument here is that EntityDamageEvent#setDamage
should not modify the damage tick logic.
2024-07-12 09:47:50 +02:00
..
api Updated Upstream (Bukkit/CraftBukkit/Spigot) (#11024) 2024-07-06 21:19:14 +02:00
server Only skip damage tick if damage is unmodified zero (#11058) 2024-07-12 09:47:50 +02:00
unapplied/server Port watchdog detail patch 2024-07-11 12:28:27 -07:00