-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add back
MAX_INTERACTION_DISTANCE
and redirect to Gale's `getMaxInt…
…eractionDistanceSquared` method to fix incompatibility with ModelEngine plugin
- Loading branch information
1 parent
6a9e0da
commit 6e6370d
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
patches/server/0059-Redirect-to-Gale-s-method-to-fix-plugin-incompatibil.patch
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,19 @@ | ||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: Dreeam <[email protected]> | ||
Date: Thu, 1 Feb 2024 12:48:58 -0500 | ||
Subject: [PATCH] Redirect to Gale's method to fix plugin incompatibility | ||
|
||
|
||
diff --git a/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java b/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java | ||
index a2950eab75913c3d8faa3955373d6ad5b0b7d54c..b7058feb8ea17fa1515fee9c7e110f8cf0f656ee 100644 | ||
--- a/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java | ||
+++ b/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java | ||
@@ -336,6 +336,8 @@ public class ServerGamePacketListenerImpl extends ServerCommonPacketListenerImpl | ||
} | ||
// Gale end - make max interaction distance configurable | ||
|
||
+ public double MAX_INTERACTION_DISTANCE = ServerGamePacketListenerImpl.getMaxInteractionDistanceSquared(this.connection.getPlayer().level()); // Leaf - redirect to Gale's `getMaxInteractionDistanceSquared` method to fix incompatibility with ModelEngine plugin | ||
+ | ||
// Purpur start | ||
private final com.google.common.cache.LoadingCache<CraftPlayer, Boolean> kickPermissionCache = com.google.common.cache.CacheBuilder.newBuilder() | ||
.maximumSize(1000) |