Skip to content

Commit

Permalink
Try fixing folia #315
Browse files Browse the repository at this point in the history
Might be useful to PaperMC/Folia#315
  • Loading branch information
MrHua269 committed Jan 11, 2025
1 parent 87d2047 commit 6775442
Show file tree
Hide file tree
Showing 34 changed files with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions patches/server/0024-Try-fixing-folia-315.patch
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.

0 comments on commit 6775442

Please sign in to comment.