Skip to content

[Bug]: LSE弹射物命中事件方块和实体会同时触发 #108

Closed
@FBQingYi

Description

@FBQingYi

Describe the bug

"onProjectileHitBlock"-弹射物命中方块监听
"onProjectileHitEntity"-弹射物命中实体监听
会同时触发,不管是命中方块还是实体。

To Reproduce

mc.listen("onProjectileHitEntity", (entity, source)=>{
log('弹射物命中实体事件')
});
mc.listen("onProjectileHitBlock", (block, source)=>{
log('弹射物命中方块事件')
});

Expected behavior

正确的触发

Screenshots

No response

Platform

Windows 10

BDS Version

1.20.71.01

LeviLamina Version

LeviLamina-0.11.1+01b482c57

LegacyScriptEngine Version

v0.6.4

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions