[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: JPEG File ScreenShot 2022-02-13 15.49.35.jpg     PNG File ScreenShot_2022-02-13 16-01-49.png    
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/entity/tileentity ticking tickets are a separate structure inside the Chunk distance map. Spigot calls addTicketAtLevel, which only adds it to one of two stores. The result is that the chunk is loaded, but that entities/blocks/redstone/physics/etc. don't get ticked at all.

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?

Generated at Sun Mar 30 02:32:24 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.