Skip to content

Commit

Permalink
Ignore item not found error
Browse files Browse the repository at this point in the history
  • Loading branch information
omg-xtao authored and Melledy committed Apr 28, 2022
1 parent fc9aa8e commit 31b0dd3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/emu/grasscutter/game/drop/DropManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ private void processDrop(DropData dd, EntityMonster em, Player gp) {
ItemData itemData = GameData.getItemDataMap().get(dd.getItemId());
int num = Utils.randomRange(dd.getMinCount(), dd.getMaxCount());

if (itemData == null) {
return;
}
if (itemData.isEquip()) {
for (int i = 0; i < num; i++) {
float range = (5f + (.1f * num));
Expand Down

0 comments on commit 31b0dd3

Please sign in to comment.