-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Might be useful to PaperMC/Folia#315
- Loading branch information
Showing
34 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: MrHua269 <[email protected]> | ||
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); |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.