Skip to content

[Bug] 可推方块实体问题 #72

Description

@WhereisFff

OS Version - 操作系统

Windows

Minecraft Version Details - Minecraft 版本信息

any

Version Details - 版本信息

any

Existing behavior - 现有行为

https://github.com/user-attachments/assets/cd3b69c2-ba18-4f88-9f2c-a085ac758c57
活塞推动方块时,如果包括可推方块实体,则其他方块产生的b36会带有此可推方块实体的数据(部分可推方块实体还会在其他b36上渲染材质)。
在 moveBlocks 方法中,@share LocalRef sharedBlockEntity 在整个 for 循环中共享持久化。当某一轮循环处理了 IMoveableEntityBlock 方块后设置了该引用,但下一轮处理普通方块(如石头)时没有清除该引用,导致陈旧的方块实体数据通过 newMovingBlockEntity wrapper 泄露到了错误 B36 方块上

Expected behavior - 预期行为

仅由该可推方块实体产生的b36方块带有该可推方块实体的数据(或渲染)

To Reproduce - 复现问题

反复推粘液块粘着装有细雪的鱼缸,观察粘液块内是否渲染细雪

This issue is unique - 这个issue是唯一的

  • I have searched the issue tracker and did not find an issue describing my bug. - 我已经搜索问题追踪器并且没有发现相同的 issue。

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions