Skip to content

Commit

Permalink
Update PlayerAPI.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
KawaiiNahida authored Mar 19, 2023
1 parent 1a0107e commit 9673e54
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions LiteLoader/src/llapi/mc/PlayerAPI.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <bitset>
#include <string_view>
#include "magic_enum/magic_enum.hpp"

#include "llapi/mc/Minecraft.hpp"
Expand Down Expand Up @@ -252,11 +253,11 @@ bool Player::giveItem(string typeName, int amount) {
}


int Player::clearItem(string typeName){
int Player::clearItem(std::string typeName){
return this->clearItem(typeName, 2^32);
}

unsigned int Player::clearItem(string_view typeName, unsigned int num) {
unsigned int Player::clearItem(std::string_view typeName, unsigned int num) {
unsigned int clearedCount = 0;
if (num < 0) {
return 0;
Expand Down

0 comments on commit 9673e54

Please sign in to comment.