Skip to content

[Bug]: Intercepting onSpawnProjectile reduces the item #143

@Caldron47

Description

@Caldron47

Describe the bug

When intercepting onSpawnProjectile event, the projectile doesn't get spawned but the number of item gets reduced.

To Reproduce

mc.listen('onSpawnProjectile', function(shooter, type) {
     return false;
});

Throw a trident/snowball/ender pearl/etc. It will be gone or reduced by 1

Expected behavior

I believe the number of item should stay the same if the event is intercepted.

Screenshots

No response

Platform

Windows 10

BDS Version

1.20.81

LeviLamina Version

0.12.3

LegacyScriptEngine Version

0.7.12

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