pop4959 / ChunkyBorder

An add-on for Chunky which lets you create and manage world borders.
GNU General Public License v3.0
47 stars 11 forks source link

Players able to use vehicles to bypass border on Folia 1.20.6 #79

Closed tech-6 closed 2 months ago

tech-6 commented 2 months ago

On Folia 1.20.6 players are able to pass through the border on vehicles but are not teleported back as chunky is attempting to teleport them away on the wrong thread.


[14:11:05] [Region Scheduler Thread #3/ERROR]: Thread Region Scheduler Thread #3 failed main thread check: Accessing entity state off owning region's thread
java.lang.Throwable: null
    at io.papermc.paper.util.TickThread.ensureTickThread(TickThread.java:78) ~[folia-1.20.6.jar:1.20.6-DEV-d797082]
    at org.bukkit.craftbukkit.entity.CraftBoat.getHandle(CraftBoat.java:114) ~[folia-1.20.6.jar:1.20.6-DEV-d797082]
    at org.bukkit.craftbukkit.entity.CraftBoat.getHandle(CraftBoat.java:10) ~[folia-1.20.6.jar:1.20.6-DEV-d797082]
    at org.bukkit.craftbukkit.entity.CraftEntity.getPassengers(CraftEntity.java:438) ~[folia-1.20.6.jar:1.20.6-DEV-d797082]
    at Chunky.jar/org.popcraft.chunky.platform.BukkitPlayer.teleport(BukkitPlayer.java:75) ~[Chunky.jar:?]
    at ChunkyBorder.jar/org.popcraft.chunkyborder.BorderCheckTask.lambda$run$0(BorderCheckTask.java:47) ~[ChunkyBorder.jar:?]
    at java.base/java.util.Optional.ifPresent(Optional.java:178) ~[?:?]
    at ChunkyBorder.jar/org.popcraft.chunkyborder.BorderCheckTask.run(BorderCheckTask.java:29) ~[ChunkyBorder.jar:?]
    at Chunky.jar/org.popcraft.chunky.platform.Folia.lambda$scheduleFixedGlobal$1(Folia.java:29) ~[Chunky.jar:?]
    at io.papermc.paper.threadedregions.scheduler.FoliaGlobalRegionScheduler$GlobalScheduledTask.run(FoliaGlobalRegionScheduler.java:179) ~[folia-1.20.6.jar:?]
    at io.papermc.paper.threadedregions.scheduler.FoliaGlobalRegionScheduler.tick(FoliaGlobalRegionScheduler.java:37) ~[folia-1.20.6.jar:?]
    at io.papermc.paper.threadedregions.RegionizedServer.globalTick(RegionizedServer.java:293) ~[folia-1.20.6.jar:1.20.6-DEV-d797082]
    at io.papermc.paper.threadedregions.RegionizedServer$GlobalTickTickHandle.tickRegion(RegionizedServer.java:148) ~[folia-1.20.6.jar:1.20.6-DEV-d797082]
    at io.papermc.paper.threadedregions.TickRegionScheduler$RegionScheduleHandle.runTick(TickRegionScheduler.java:404) ~[folia-1.20.6.jar:1.20.6-DEV-d797082]
    at ca.spottedleaf.concurrentutil.scheduler.SchedulerThreadPool$TickThreadRunner.run(SchedulerThreadPool.java:525) ~[folia-1.20.6.jar:1.20.6-DEV-d797082]
    at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]```
pop4959 commented 2 months ago

Have you tried updating chunky? This should have been fixed in a newer version.

pop4959 commented 2 months ago

Closing due to no response. I am fairly certain this is a duplicate. Let me know if not and I can re-open.