mirror of
https://github.com/Winds-Studio/Leaf.git
synced 2025-12-19 15:09:25 +00:00
22 lines
1.1 KiB
Diff
22 lines
1.1 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Dreeam <61569423+Dreeam-qwq@users.noreply.github.com>
|
|
Date: Mon, 19 Feb 2024 13:10:16 -0500
|
|
Subject: [PATCH] Redirect vanilla getProfiler in PathNavigationRegion
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/world/level/PathNavigationRegion.java b/src/main/java/net/minecraft/world/level/PathNavigationRegion.java
|
|
index b87c9a6189161e776fa488c1ac6215edca596184..7e2bcc08cac90d4e095fc782e77bd8e64d77c220 100644
|
|
--- a/src/main/java/net/minecraft/world/level/PathNavigationRegion.java
|
|
+++ b/src/main/java/net/minecraft/world/level/PathNavigationRegion.java
|
|
@@ -155,4 +155,10 @@ public class PathNavigationRegion implements BlockGetter, CollisionGetter {
|
|
public int getHeight() {
|
|
return this.level.getHeight();
|
|
}
|
|
+
|
|
+ // Leaf start - Redirect to fix plugin incompatibility
|
|
+ public net.minecraft.util.profiling.ProfilerFiller getProfiler() {
|
|
+ return net.minecraft.util.profiling.InactiveProfiler.INSTANCE; // Gale - Purpur - remove vanilla profiler
|
|
+ }
|
|
+ // Leaf end
|
|
}
|