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
7600f706
Commit
7600f706
authored
Jul 26, 2022
by
Melledy
Browse files
Move `QuestEncryptionKeys` to `resources/`
parent
2fe6bcf2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/data/ResourceLoader.java
View file @
7600f706
...
@@ -418,7 +418,7 @@ public class ResourceLoader {
...
@@ -418,7 +418,7 @@ public class ResourceLoader {
GameData
.
getMainQuestDataMap
().
put
(
mainQuest
.
getId
(),
mainQuest
);
GameData
.
getMainQuestDataMap
().
put
(
mainQuest
.
getId
(),
mainQuest
);
}
}
try
(
Reader
reader
=
DataLoader
.
loadReader
(
"QuestEncryptionKeys.json"
))
{
try
(
Reader
reader
=
new
FileReader
(
new
File
(
RESOURCE
(
"QuestEncryptionKeys.json"
))
))
{
List
<
QuestEncryptionKey
>
keys
=
Grasscutter
.
getGsonFactory
().
fromJson
(
List
<
QuestEncryptionKey
>
keys
=
Grasscutter
.
getGsonFactory
().
fromJson
(
reader
,
reader
,
TypeToken
.
getParameterized
(
List
.
class
,
QuestEncryptionKey
.
class
).
getType
());
TypeToken
.
getParameterized
(
List
.
class
,
QuestEncryptionKey
.
class
).
getType
());
...
...
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