[SPIGOT-6934] Plugin chunk load tickets dont tick Block/entities as of 1.18 Created: 13/Feb/22 Updated: 21/Feb/22 Resolved: 19/Feb/22 |
|
Status: | Resolved |
Project: | Spigot |
Component/s: | None |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | Bug | Priority: | Minor |
Reporter: | Irmo van den Berge | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 1 |
Labels: | None | ||
Environment: |
Windows 7 (lol) JDK 17 |
Attachments: |
![]() ![]() |
Version: | This server is running CraftBukkit version dev-Spigot-6edb62f-de95135 (MC: 1.18.1) (Implementing API version 1.18.1-R0.1-SNAPSHOT) |
Plugin: | Tested with BKCommonLib/Traincarts |
Guidelines Read: | Yes |
Description |
As of Minecraft 1.18 the block/ This is fixed by calling the newly added addRegionTicket/removeRegionTicket, which adds them to both distance tracking stores. (see screenshot) It may be required to add a separate option for this. In some cases you may not want to also tick entities inside, for example, if you just want to read or modify block data at those coordinates. But in the vast majority of cases I'd imagine plugins use this as chunk loaders, and then you do want all that ticking to occur. I can confirm that calling those methods instead works. A hopper redstone clock works again. |
Comments |
Comment by Irmo van den Berge [ 21/Feb/22 ] |
Can confirm it's been fixed. Thanks |
Comment by Irmo van den Berge [ 14/Feb/22 ] |
You're correct, for entities this indeed doesn't matter. So only block entities, block physics (redstone, water physics) matter then. I've updated the post. |
Comment by md_5 [ 13/Feb/22 ] |
Entity activation range would've prevented most-all entity ticking anyway? |