Fix EntityDeathEvent cancellation (#9323)

This commit is contained in:
Lulu13022002 2023-06-12 19:03:51 +02:00 committed by GitHub
parent f4dfdcbb5b
commit eb0693fff7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 65 additions and 62 deletions

View file

@ -5,7 +5,7 @@ Subject: [PATCH] Add LivingEntity#getTargetEntity
diff --git a/src/main/java/net/minecraft/world/entity/LivingEntity.java b/src/main/java/net/minecraft/world/entity/LivingEntity.java
index 5b093a5c4ac0218dbadd6d7045266a164fcf834c..919f5229ac494961a8cb25b375f27753555ed52c 100644
index b712f505fd092e0366ffc74ff59345a7f8c701be..6718b4159b1c670e0a15020ee5dba67566d2adc1 100644
--- a/src/main/java/net/minecraft/world/entity/LivingEntity.java
+++ b/src/main/java/net/minecraft/world/entity/LivingEntity.java
@@ -117,6 +117,7 @@ import net.minecraft.world.level.storage.loot.LootTable;
@ -16,7 +16,7 @@ index 5b093a5c4ac0218dbadd6d7045266a164fcf834c..919f5229ac494961a8cb25b375f27753
import net.minecraft.world.phys.HitResult;
import net.minecraft.world.phys.Vec3;
import net.minecraft.world.scores.PlayerTeam;
@@ -3840,6 +3841,38 @@ public abstract class LivingEntity extends Entity implements Attackable {
@@ -3843,6 +3844,38 @@ public abstract class LivingEntity extends Entity implements Attackable {
return this.level().clip(raytrace);
}