Skip to content

Commit

Permalink
Fix incorrect ifn check on folia's tracker process
Browse files Browse the repository at this point in the history
  • Loading branch information
MrHua269 committed Jan 26, 2025
1 parent 7604000 commit 9425fd9
Show file tree
Hide file tree
Showing 16 changed files with 20 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: MrHua269 <wangxyper@163.com>
Date: Sun, 26 Jan 2025 23:11:33 +0800
Subject: [PATCH] Fix incorrect ifn check on folia's tracker process


diff --git a/net/minecraft/server/level/ChunkMap.java b/net/minecraft/server/level/ChunkMap.java
index 4bdb05948e9102304364f3681ce353f1cf2a0aee..5c507be097051de9a43a31bbc6190c3db7688667 100644
--- a/net/minecraft/server/level/ChunkMap.java
+++ b/net/minecraft/server/level/ChunkMap.java
@@ -902,7 +902,7 @@ public class ChunkMap extends ChunkStorage implements ChunkHolder.PlayerProvider
// Folia start - region threading
for (Entity possible : this.level.getCurrentWorldData().trackerEntities) {
ChunkMap.TrackedEntity trackedEntity1 = possible.moonrise$getTrackedEntity();
- if (trackedEntity == null) {
+ if (trackedEntity1 == null) {
continue;
}
// Folia end - region threading
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Subject: [PATCH] SparklyPaper Optimize canSee checks


diff --git a/net/minecraft/server/level/ChunkMap.java b/net/minecraft/server/level/ChunkMap.java
index 4bdb05948e9102304364f3681ce353f1cf2a0aee..af0df21e19c372f23fcac263dc56270867d5ca8c 100644
index 5c507be097051de9a43a31bbc6190c3db7688667..7eff847790394aecd058e7a61905da86163b4c6e 100644
--- a/net/minecraft/server/level/ChunkMap.java
+++ b/net/minecraft/server/level/ChunkMap.java
@@ -1224,7 +1224,7 @@ public class ChunkMap extends ChunkStorage implements ChunkHolder.PlayerProvider
Expand Down

0 comments on commit 9425fd9

Please sign in to comment.