Compare commits
2 Commits
e4ff7728af
...
d1672c0ee2
| Author | SHA1 | Date | |
|---|---|---|---|
| d1672c0ee2 | |||
| c234abe3aa |
@@ -563,7 +563,7 @@ void ServerSideNetworkHandler::handle(const RakNet::RakNetGUID& source, WantCrea
|
|||||||
for (int y = 0; y < items.size(); y++) {
|
for (int y = 0; y < items.size(); y++) {
|
||||||
auto itmRecipe = items.at(y);
|
auto itmRecipe = items.at(y);
|
||||||
|
|
||||||
if (itmRecipe.id == itm->id && itmRecipe.count == itm->count) {
|
if (itmRecipe.id == itm->id && itm->count >= itmRecipe.count) {
|
||||||
checkForExists.push_back(itm->id);
|
checkForExists.push_back(itm->id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -575,7 +575,7 @@ void ServerSideNetworkHandler::handle(const RakNet::RakNetGUID& source, WantCrea
|
|||||||
|
|
||||||
auto it = std::find(checkForExists.begin(), checkForExists.end(), item.id);
|
auto it = std::find(checkForExists.begin(), checkForExists.end(), item.id);
|
||||||
|
|
||||||
if (it == checkForExists.end()) {
|
if (it == checkForExists.end() && checkForExists.size() > 1) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user