38 lines
1.7 KiB
Diff
38 lines
1.7 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: MrHua269 <wangxyper@163.com>
|
|
Date: Sat, 11 Jan 2025 15:23:31 +0800
|
|
Subject: [PATCH] Try fixing folia #315
|
|
|
|
Might be useful to https://github.com/PaperMC/Folia/issues/315
|
|
|
|
diff --git a/src/main/java/net/minecraft/world/entity/projectile/ThrownEnderpearl.java b/src/main/java/net/minecraft/world/entity/projectile/ThrownEnderpearl.java
|
|
index 3bd0f3ae53eaa22409152d7f41e511e76bdaa265..6e76e4801653d0c84cb811bf72f1e1e8e1712ff6 100644
|
|
--- a/src/main/java/net/minecraft/world/entity/projectile/ThrownEnderpearl.java
|
|
+++ b/src/main/java/net/minecraft/world/entity/projectile/ThrownEnderpearl.java
|
|
@@ -51,7 +51,7 @@ public class ThrownEnderpearl extends ThrowableItemProjectile {
|
|
return Items.ENDER_PEARL;
|
|
}
|
|
|
|
- @Override
|
|
+ /*@Override // Luminol - Try fixing folia #315
|
|
protected void setOwnerThroughUUID(UUID uuid) {
|
|
this.deregisterFromCurrentOwner();
|
|
super.setOwnerThroughUUID(uuid);
|
|
@@ -64,6 +64,7 @@ public class ThrownEnderpearl extends ThrowableItemProjectile {
|
|
super.setOwner(entity);
|
|
this.registerToCurrentOwner();
|
|
}
|
|
+ */ // Luminol - Try fixing folia #315
|
|
|
|
private void deregisterFromCurrentOwner() {
|
|
Entity entity = this.getOwner();
|
|
@@ -388,7 +389,7 @@ public class ThrownEnderpearl extends ThrowableItemProjectile {
|
|
@Override
|
|
public void onRemoval(Entity.RemovalReason reason) {
|
|
if (reason != Entity.RemovalReason.UNLOADED_WITH_PLAYER) {
|
|
- this.deregisterFromCurrentOwner();
|
|
+ // this.deregisterFromCurrentOwner(); // Luminol - Try fixing folia #315
|
|
}
|
|
|
|
super.onRemoval(reason);
|