
Folia issue with #getLivingEntities
Anon8281 opened this issue ยท 1 comments
What steps will reproduce the problem?
- Build Folia 1.20.4 from dev branch and install it
- Download latest Towny plugin
- Enjoy funny logs in terminal
What is the expected output?
Normal work
Towny version
0.100.1.7
Server version
Folia 1.20.4
Please use Pastebin.com to link the following files
[06:36:15 WARN]: [Towny] Global task for Towny v0.100.1.7 generated an exception
java.lang.IllegalStateException: Accessing entity state off owning region's thread
at io.papermc.paper.util.TickThread.ensureTickThread(TickThread.java:79) ~[folia-1.20.4.jar:git-Folia-"b0c8ebf"]
at org.bukkit.craftbukkit.v1_20_R3.entity.CraftPig.getHandle(CraftPig.java:67) ~[folia-1.20.4.jar:git-Folia-"b0c8ebf"]
at org.bukkit.craftbukkit.v1_20_R3.entity.CraftPig.getHandle(CraftPig.java:8) ~[folia-1.20.4.jar:git-Folia-"b0c8ebf"]
at org.bukkit.craftbukkit.v1_20_R3.entity.CraftEntity.isInWorld(CraftEntity.java:939) ~[folia-1.20.4.jar:git-Folia-"b0c8ebf"]
at org.bukkit.craftbukkit.v1_20_R3.entity.CraftEntity.isValid(CraftEntity.java:393) ~[folia-1.20.4.jar:git-Folia-"b0c8ebf"]
at org.bukkit.craftbukkit.v1_20_R3.CraftRegionAccessor.lambda$getLivingEntities$2(CraftRegionAccessor.java:321) ~[folia-1.20.4.jar:git-Folia-"b0c8ebf"]
at java.lang.Iterable.forEach(Iterable.java:75) ~[?:?]
at org.bukkit.craftbukkit.v1_20_R3.CraftRegionAccessor.getLivingEntities(CraftRegionAccessor.java:317) ~[folia-1.20.4.jar:git-Folia-"b0c8ebf"]
at com.palmergames.bukkit.towny.tasks.MobRemovalTimerTask.run(MobRemovalTimerTask.java:96) ~[towny-0.100.1.7.jar:?]
at com.palmergames.bukkit.towny.scheduling.impl.FoliaTaskScheduler.lambda$runRepeating$6(FoliaTaskScheduler.java:87) ~[towny-0.100.1.7.jar:?]
at io.papermc.paper.threadedregions.scheduler.FoliaGlobalRegionScheduler$GlobalScheduledTask.run(FoliaGlobalRegionScheduler.java:179) ~[folia-1.20.4.jar:?]
at io.papermc.paper.threadedregions.scheduler.FoliaGlobalRegionScheduler.tick(FoliaGlobalRegionScheduler.java:37) ~[folia-1.20.4.jar:?]
at io.papermc.paper.threadedregions.RegionizedServer.globalTick(RegionizedServer.java:293) ~[folia-1.20.4.jar:git-Folia-"b0c8ebf"]
at io.papermc.paper.threadedregions.RegionizedServer$GlobalTickTickHandle.tickRegion(RegionizedServer.java:148) ~[folia-1.20.4.jar:git-Folia-"b0c8ebf"]
at io.papermc.paper.threadedregions.TickRegionScheduler$RegionScheduleHandle.runTick(TickRegionScheduler.java:404) ~[folia-1.20.4.jar:git-Folia-"b0c8ebf"]
at ca.spottedleaf.concurrentutil.scheduler.SchedulerThreadPool$TickThreadRunner.run(SchedulerThreadPool.java:525) ~[folia-1.20.4.jar:git-Folia-"b0c8ebf"]
at java.lang.Thread.run(Thread.java:833) ~[?:?]
Apparently it is a folia bug that started after 1.20.2. #7202