Skip to content

[Critical BUG] The method autoHarvest() checks the inventory every tick, resulting in extreme lag when there are a large number of Mob Cages. #67

@LUNACYGG

Description

@LUNACYGG

My native language is not English, so I am using a translator to have a conversation with you. I apologize for any grammar errors

While playing Minecraft, I noticed that my server's TPS dropped to 9 TPS or even lower. After analyzing the server's ticks, I found that the extensive invocation of the InsertItem() method by hoppers was causing lag. Upon breaking the Hopping Mob Cages, the server's TPS recovered to 20 TPS. Upon inspecting the code, I discovered that the attemptHarvest(BlockState state) function in the MobCageBlockEntity class triggers the autoHarvest() method every tick. This results in every Hopping Mob Cage checking the inventory below it every tick. Please fix this bug as soon as possible as it has severely impacted my gaming experience.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions