PaperMC/paper-server/patches/sources/net/minecraft/world/entity
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
..
ai Only erase allay memory on non-item targets 2023-08-04 15:53:36 +02:00
ambient Climbing should not bypass cramming gamerule 2020-08-23 20:59:00 +02:00
animal Revert to vanilla handling of LivingEntity#actuallyHurt 2024-04-27 09:44:53 -07:00
boss Add config for mobs immune to default effects 2020-12-02 21:03:02 -08:00
decoration Fix DamageSource API 2024-03-09 14:13:04 -08:00
item Configuration for horizontal-only item merging 2024-08-07 13:25:55 +02:00
monster Add config for mobs immune to default effects 2020-12-02 21:03:02 -08:00
npc Add PlayerTradeEvent and PlayerPurchaseEvent 2020-07-02 16:12:10 -07:00
player check if itemstack is stackable first 2024-02-24 19:33:01 -08:00
projectile Fix PickupStatus getting reset 2024-07-21 19:11:22 +02:00
raid More Raid API 2022-03-04 09:46:33 -08:00
vehicle Fix InventoryOpenEvent cancellation 2024-08-19 18:05:26 +02:00
AgeableMob.java.patch Honor EntityAgeable.ageLock 2018-09-23 20:59:53 -05:00
AreaEffectCloud.java.patch Entity Activation Range 2024-11-02 18:16:11 +11:00
ConversionParams.java.patch Add EntityZapEvent 2016-10-16 23:19:30 -07:00
ConversionType.java.patch Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00
Display.java.patch Fix text display error on spawn 2023-03-16 16:27:50 +01:00
Entity.java.patch Fix DamageSource API 2024-03-09 14:13:04 -08:00
EntitySelector.java.patch Ability to control player's insomnia and phantoms 2022-01-22 17:56:19 +01:00
EntityType.java.patch Validate ResourceLocation in NBT reading 2024-01-04 13:49:14 +01:00
ExperienceOrb.java.patch Expand PlayerItemMendEvent 2022-01-20 18:11:20 -08:00
Interaction.java.patch Fix advancement triggers for entity damage 2023-03-16 10:04:17 +01:00
ItemBasedSteering.java.patch Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00
Leashable.java.patch Validate ResourceLocation in NBT reading 2024-01-04 13:49:14 +01:00
LightningBolt.java.patch Fix strikeLightningEffect powers lightning rods and clears copper 2023-09-30 12:36:14 +02:00
LivingEntity.java.patch Check dead flag in isAlive() 2024-08-26 14:01:37 +02:00
Mob.java.patch Validate ResourceLocation in NBT reading 2024-01-04 13:49:14 +01:00
NeutralMob.java.patch Prevent entity loading causing async lookups 2022-03-06 11:09:09 -05:00
OminousItemSpawner.java.patch Fixes and additions to the spawn reason API 2019-03-24 00:24:52 -04:00
PathfinderMob.java.patch Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00
Shearable.java.patch Add Shearable API 2021-10-17 15:39:48 -04:00
TamableAnimal.java.patch Fix NPE on null loc for EntityTeleportEvent 2023-12-09 19:15:59 -08:00