13
0
geforkt von Mirrors/Paper
Paper/paper-server/patches/sources/net/minecraft
Newwind e29ea45639 Check dead flag in isAlive()
If a plugin sets the health of a living entity above 0 after it has already died, the entity will be "revived".
It will behave the exact same as before, except with the internal "dead" flag set, resulting in 2 behavior changes,
A: it's completely invulnerable to all damage
B: it's unable to pickup items

isValid() for these bugged entities will return true, isDead() will return false, despite the dead flag.
This patch checks that the mob isn't dead before saying its alive.

Also, even if the plugin is responsibly checking !isDead() before modifying health, on very rare circumstances
I am currently unable to replicate, these "revived" entities can still appear
2024-08-26 14:01:37 +02:00
..
advancements Lazily create LootContext for criterions 2023-11-21 12:16:39 -03:00
commands Prioritize Minecraft commands in function parsing and command blocks 2024-07-01 11:58:49 -07:00
core Print data component type on encoding error 2024-05-09 15:11:34 +02:00
data/loot/packs Remove set damage lootable item function from compasses 2024-08-22 22:55:37 +02:00
nbt Improve tag parser handling 2024-02-05 11:54:04 +01:00
network Fix sending disconnect packet in phases where it doesn't exist 2024-05-30 18:46:15 +01:00
resources Validate ResourceLocation in NBT reading 2024-01-04 13:49:14 +01:00
server Fix: synchronise sending chat to client with updating message signature cache 2024-08-26 19:45:07 +02:00
stats Fix spigot's Forced-Stats 2023-08-28 01:32:39 +01:00
util Validate usernames 2022-01-01 05:19:37 -08:00
world Check dead flag in isAlive() 2024-08-26 14:01:37 +02:00
ChatFormatting.java.patch Adventure 2021-01-29 17:54:03 +01:00
CrashReport.java.patch Disable memory reserve allocating 2024-01-18 23:25:09 +01:00
CrashReportCategory.java.patch Deobfuscate stacktraces in log messages, crash reports, and etc. 2021-06-20 18:19:09 -07:00
Util.java.patch Remove client-side code using deprecated for removal AccessController 2021-11-26 15:09:58 -08:00