39 lines
1.7 KiB
Diff
39 lines
1.7 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Helvetica Volubi <suisuroru@blue-millennium.fun>
|
|
Date: Wed, 18 Feb 2026 00:15:08 +0800
|
|
Subject: [PATCH] Leaves: Fakeplayer
|
|
|
|
|
|
diff --git a/src/main/java/me/earthme/luminol/utils/FoliaServerWaypointManager.java b/src/main/java/me/earthme/luminol/utils/FoliaServerWaypointManager.java
|
|
index 0a20c6f03625391201e5ced167707e54ed27daa1..2872b22e44cba48442c526f0a53e1fc6c5ce760f 100644
|
|
--- a/src/main/java/me/earthme/luminol/utils/FoliaServerWaypointManager.java
|
|
+++ b/src/main/java/me/earthme/luminol/utils/FoliaServerWaypointManager.java
|
|
@@ -46,6 +46,12 @@ public class FoliaServerWaypointManager implements WaypointManager<@NotNull Wayp
|
|
return;
|
|
}
|
|
|
|
+ // Leaves start - fakeplayer
|
|
+ if (waypoint instanceof org.leavesmc.leaves.bot.ServerBot bot && !bot.getConfigValue(org.leavesmc.leaves.bot.agent.Configs.ENABLE_LOCATOR_BAR)) {
|
|
+ return;
|
|
+ }
|
|
+ // Leaves end - fakeplayer
|
|
+
|
|
this.waypoints.add(waypoint);
|
|
|
|
for (ServerPlayer toCreateFor : this.trackingPlayers) {
|
|
@@ -101,7 +107,13 @@ public class FoliaServerWaypointManager implements WaypointManager<@NotNull Wayp
|
|
scheduleIfOffTarget(player, () -> {
|
|
this.trackingPlayers.add(player);
|
|
|
|
- for (WaypointTransmitter transmitter : this.waypoints) {
|
|
+ // Leaves start - fakeplayer
|
|
+ if (player instanceof org.leavesmc.leaves.bot.ServerBot) {
|
|
+ return;
|
|
+ }
|
|
+ // Leaves end - fakeplayer
|
|
+
|
|
+ for (WaypointTransmitter transmitter : this.waypoints) {
|
|
this.createConnection(player, transmitter);
|
|
}
|
|
|