Ignore item not found error

This commit is contained in:
omg-xtao 2022-04-28 22:27:51 +08:00 committed by Melledy
parent fc9aa8ec24
commit 31b0dd30e2

View File

@ -83,6 +83,9 @@ public class DropManager {
ItemData itemData = GameData.getItemDataMap().get(dd.getItemId()); ItemData itemData = GameData.getItemDataMap().get(dd.getItemId());
int num = Utils.randomRange(dd.getMinCount(), dd.getMaxCount()); int num = Utils.randomRange(dd.getMinCount(), dd.getMaxCount());
if (itemData == null) {
return;
}
if (itemData.isEquip()) { if (itemData.isEquip()) {
for (int i = 0; i < num; i++) { for (int i = 0; i < num; i++) {
float range = (5f + (.1f * num)); float range = (5f + (.1f * num));