Add Leaves's Lithium sleeping block entity#725
Merged
Dreeam-qwq merged 11 commits intoMay 13, 2026
Conversation
3 tasks
9faaf8a to
509c0bc
Compare
Member
Author
|
Tested on several servers (Tested with BlockLocker and QuickShop plugins), and didn't have any issues so far. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Lithium's sleeping block entity is a very useful optimization for block entity ticking. It can give a decent performance improvement, especially for SMP or "生电" servers, and keep vanilla parity at the same time.
Based on the Leaves's version of Lithium Sleeping Block Entity, since their impl contains fixes to the events compatibility issues.
The latest sleeping block-entity related changes were synchronized from Lithium, which is separated as a temp patch. Once Leaves finishes the 26.x update, I will open a Pull Request to merge these changes to them.
The original hopper related optimizations (Gale's hopper suck item interval and Leaf's
throttle-hopper-when-full) are dropped, since there is no need if Lithium's sleeping block entity optimization exists.Additionally, Leaves's vanilla hopper is also added.
Still need to test for several days.
Config changes
Set
sleeping-block-entityto true to enable Lithium's sleeping block entity optimization.Set
use-vanilla-hopperto true to allow the use of more redstone builds, such as item collection.