mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-26 22:22:51 +00:00
Ignore item not found error
This commit is contained in:
parent
fc9aa8ec24
commit
31b0dd30e2
@ -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));
|
||||||
|
Loading…
Reference in New Issue
Block a user