LegacyScriptEngine icon indicating copy to clipboard operation
LegacyScriptEngine copied to clipboard

[Bug]: player.clearItem(item, count) clears [count] items from each slots

Open edshPC opened this issue 1 year ago • 0 comments

Describe the bug

player.clearItem(item, count) clears [count] items from each slots, instead of clearing [count] items from whole inventory.

To Reproduce

  1. Use player.clearItem(item, count)
  2. Have a planty of slots of [item]
  3. [count] items from each slot cleared

Expected behavior

if [count] items has already cleared, it should stop clearing

Screenshots

No response

Platform

No response

BDS Version

No response

LeviLamina Version

No response

LegacyScriptEngine Version

0.8.19

Additional context

No response

edshPC avatar Oct 01 '24 19:10 edshPC