aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0899-Do-crystal-portal-proximity-check-before-entity-look.patch
diff options
context:
space:
mode:
authorLulu13022002 <[email protected]>2024-05-26 23:30:45 +0200
committerGitHub <[email protected]>2024-05-26 23:30:45 +0200
commit841ab4134df90a166a22396d1dc5841bcc38e35f (patch)
treeab3130bd844443bf73000e23cff5863559b29cb8 /patches/server/0899-Do-crystal-portal-proximity-check-before-entity-look.patch
parent1b8cdc6d827d761474f5589a7ff3f75c87ef9005 (diff)
downloadPaper-841ab4134df90a166a22396d1dc5841bcc38e35f.tar.gz
Paper-841ab4134df90a166a22396d1dc5841bcc38e35f.zip
Fix more item desync when an event is cancelled (#10654)
Diffstat (limited to 'patches/server/0899-Do-crystal-portal-proximity-check-before-entity-look.patch')
-rw-r--r--patches/server/0899-Do-crystal-portal-proximity-check-before-entity-look.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/patches/server/0899-Do-crystal-portal-proximity-check-before-entity-look.patch b/patches/server/0899-Do-crystal-portal-proximity-check-before-entity-look.patch
index c83b2614f9..55393e1053 100644
--- a/patches/server/0899-Do-crystal-portal-proximity-check-before-entity-look.patch
+++ b/patches/server/0899-Do-crystal-portal-proximity-check-before-entity-look.patch
@@ -12,7 +12,7 @@ some servers that have players placing end crystals as a style of combat.
The very cheap distance check prevents running the entity lookup every time.
diff --git a/src/main/java/net/minecraft/world/item/EndCrystalItem.java b/src/main/java/net/minecraft/world/item/EndCrystalItem.java
-index f9a940cdff3983d9d4de46bd5ddc1905f9254dcf..dd1bdb4bb87a3a59c229ba76b36841d199717624 100644
+index 1339459dcbd85897f32362019f79a68393c91674..26c77cead77db560dd5836f5b56e09775cf5172d 100644
--- a/src/main/java/net/minecraft/world/item/EndCrystalItem.java
+++ b/src/main/java/net/minecraft/world/item/EndCrystalItem.java
@@ -30,7 +30,7 @@ public class EndCrystalItem extends Item {
@@ -24,7 +24,7 @@ index f9a940cdff3983d9d4de46bd5ddc1905f9254dcf..dd1bdb4bb87a3a59c229ba76b36841d1
if (!world.isEmptyBlock(blockposition1)) {
return InteractionResult.FAIL;
-@@ -57,7 +57,7 @@ public class EndCrystalItem extends Item {
+@@ -58,7 +58,7 @@ public class EndCrystalItem extends Item {
EndDragonFight enderdragonbattle = ((ServerLevel) world).getDragonFight();
if (enderdragonbattle != null) {