mirror of
https://github.com/PaperMC/Folia.git
synced 2025-04-22 20:29:19 +08:00
Use correct TrackedEntity variable in ChunkMap#addEntity
The variable `trackedEntity` is the input parameter, but we need use the TrackedEntity variable for the possible other entity.
This commit is contained in:
parent
ec78da5ae0
commit
35d31075a6
@ -111,7 +111,7 @@
|
||||
+ // 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user