We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a85e686 commit 64276c6Copy full SHA for 64276c6
src/legacy/api/PlayerAPI.cpp
@@ -2841,7 +2841,7 @@ Local<Value> PlayerClass::clearItem(const Arguments& args) {
2841
} else {
2842
result += clearCount;
2843
}
2844
- player->getInventory().removeItem(slot, clearCount);
+ player->getHandContainer().removeItem(slot, clearCount);
2845
2846
2847
auto& armorSlots = player->getArmorContainer().getSlots();
@@ -2852,7 +2852,7 @@ Local<Value> PlayerClass::clearItem(const Arguments& args) {
2852
2853
2854
2855
+ player->getArmorContainer().removeItem(slot, clearCount);
2856
2857
2858
player->refreshInventory();
0 commit comments