PaperMC/patches
Bjarne Koll 70ff1ec079
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
removed Remove fully dropped patches 2024-06-16 13:14:53 +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