Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
ziqian zhang
Grasscutter
Commits
31b0dd30
Commit
31b0dd30
authored
Apr 28, 2022
by
omg-xtao
Committed by
Melledy
Apr 28, 2022
Browse files
Ignore item not found error
parent
fc9aa8ec
Changes
1
Show whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/game/drop/DropManager.java
View file @
31b0dd30
...
...
@@ -83,6 +83,9 @@ public class DropManager {
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
=
(
5
f
+
(.
1
f
*
num
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment