Skip to content

Commit

Permalink
Add back MAX_INTERACTION_DISTANCE and redirect to Gale's `getMaxInt…
Browse files Browse the repository at this point in the history
…eractionDistanceSquared` method to fix incompatibility with ModelEngine plugin
  • Loading branch information
Dreeam-qwq committed Feb 2, 2024
1 parent 6a9e0da commit 6e6370d
Showing 1 changed file with 19 additions and 0 deletions.
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)

0 comments on commit 6e6370d

Please sign in to comment.