-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Redirect some vanilla methods to fix plugin compatibility
Citizens and ModelEngine and potentially more
- Loading branch information
1 parent
6fc1127
commit b2439a9
Showing
2 changed files
with
35 additions
and
7 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
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: Mon, 19 Feb 2024 13:10:16 -0500 | ||
Subject: [PATCH] Redirect vanilla profiler | ||
|
||
|
||
diff --git a/src/main/java/net/minecraft/world/level/PathNavigationRegion.java b/src/main/java/net/minecraft/world/level/PathNavigationRegion.java | ||
index 9c2321ebb1237b4ecd3e7f7053e5039b800d89ff..009716c07f5c6b5571792fe87b0a07a4e65fc43d 100644 | ||
--- a/src/main/java/net/minecraft/world/level/PathNavigationRegion.java | ||
+++ b/src/main/java/net/minecraft/world/level/PathNavigationRegion.java | ||
@@ -153,4 +153,8 @@ public class PathNavigationRegion implements BlockGetter, CollisionGetter { | ||
public int getHeight() { | ||
return this.level.getHeight(); | ||
} | ||
+ | ||
+ public net.minecraft.util.profiling.ProfilerFiller getProfiler() { | ||
+ return net.minecraft.util.profiling.InactiveProfiler.INSTANCE; // Gale - Purpur - remove vanilla profiler // Leaf - Redirect to fix plugin incompatibility | ||
+ } | ||
} |