world.getLivingEntities() inside globalRegionScheduler.runAtFixedRate broken in dev/1.20.4 ? #184
Labels
No labels
documentation
good first issue
help wanted
resolution: duplicate
resolution: invalid
resolution: won't fix
status: needs triage
type: bug
type: feature
type: performance
type: question
version: 1.19.4
version: 1.20
version: 1.20.1
version: 1.20.2
version: 1.20.4
version: 1.20.6
version: 1.21.11
version: 1.21.4
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Minecraft/Folia#184
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Expected behavior
No errors :D
Observed/Actual behavior
Steps/models to reproduce
Use
world.getLivingEntities()insideglobalRegionScheduler.runAtFixedRateon dev/1.20.4https://github.com/TownyAdvanced/Towny/issues/7202
MobRemovalTimerTask.java:96
FoliaTaskScheduler.java:87
Plugin and Datapack List
Towny 0.100.1.5
Folia version
This server is running Folia version git-Folia-"7bc26ec" (MC: 1.20.4) (Implementing API version 1.20.4-R0.1-SNAPSHOT) (Git:
7bc26econ dev/1.20.4)Other
It works on 1.20.2.
I'm running into this bug as well,It can be seen that this plugin has a bug on Folia 1.20.4
Global region cannot access any region state, which includes entities.
@Spottedleaf Towny has adapted already to the change so it's not a pressing matter any more. I am curious as to why it was working before the 1.20.4 versions. Did your team close a loophole?
more checks are added to protect the server from entering an unknown state, for which it needs to crash to escape safely without any data corruption
The more there are such checks, the less crashes caused by random plugin actions will happen
Edit: Or, in this case, spigot added new api which will require new checks
https://hub.spigotmc.org/stash/projects/SPIGOT/repos/craftbukkit/commits/0478e0417b217d443d7ff8a52e3a97a1b7147d15#src%2Fmain%2Fjava%2Forg%2Fbukkit%2Fcraftbukkit%2Fentity%2FCraftEntity.java?t=648