LegacyScriptEngine
LegacyScriptEngine copied to clipboard
[Bug]: player.clearItem(item, count) clears [count] items from each slots
Describe the bug
player.clearItem(item, count) clears [count] items from each slots, instead of clearing [count] items from whole inventory.
To Reproduce
- Use player.clearItem(item, count)
- Have a planty of slots of [item]
- [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