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
5895439a
Commit
5895439a
authored
Jun 26, 2022
by
KingRainbow44
Browse files
Move shop data messages to `debug`
parent
19d81463
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/game/shop/ShopManager.java
View file @
5895439a
...
@@ -84,7 +84,7 @@ public class ShopManager {
...
@@ -84,7 +84,7 @@ public class ShopManager {
}
}
getShopData
().
put
(
shopTable
.
getShopId
(),
shopTable
.
getItems
());
getShopData
().
put
(
shopTable
.
getShopId
(),
shopTable
.
getItems
());
}
}
Grasscutter
.
getLogger
().
info
(
"Shop data successfully loaded."
);
Grasscutter
.
getLogger
().
debug
(
"Shop data successfully loaded."
);
}
else
{
}
else
{
Grasscutter
.
getLogger
().
error
(
"Unable to load shop data. Shop data size is 0."
);
Grasscutter
.
getLogger
().
error
(
"Unable to load shop data. Shop data size is 0."
);
}
}
...
@@ -110,7 +110,7 @@ public class ShopManager {
...
@@ -110,7 +110,7 @@ public class ShopManager {
List
<
ShopChestTable
>
shopChestTableList
=
Grasscutter
.
getGsonFactory
().
fromJson
(
fileReader
,
TypeToken
.
getParameterized
(
Collection
.
class
,
ShopChestTable
.
class
).
getType
());
List
<
ShopChestTable
>
shopChestTableList
=
Grasscutter
.
getGsonFactory
().
fromJson
(
fileReader
,
TypeToken
.
getParameterized
(
Collection
.
class
,
ShopChestTable
.
class
).
getType
());
if
(
shopChestTableList
.
size
()
>
0
)
{
if
(
shopChestTableList
.
size
()
>
0
)
{
getShopChestData
().
addAll
(
shopChestTableList
);
getShopChestData
().
addAll
(
shopChestTableList
);
Grasscutter
.
getLogger
().
info
(
"ShopChest data successfully loaded."
);
Grasscutter
.
getLogger
().
debug
(
"ShopChest data successfully loaded."
);
}
else
{
}
else
{
Grasscutter
.
getLogger
().
error
(
"Unable to load ShopChest data. ShopChest data size is 0."
);
Grasscutter
.
getLogger
().
error
(
"Unable to load ShopChest data. ShopChest data size is 0."
);
}
}
...
@@ -125,7 +125,7 @@ public class ShopManager {
...
@@ -125,7 +125,7 @@ public class ShopManager {
List
<
ShopChestBatchUseTable
>
shopChestBatchUseTableList
=
Grasscutter
.
getGsonFactory
().
fromJson
(
fileReader
,
TypeToken
.
getParameterized
(
Collection
.
class
,
ShopChestBatchUseTable
.
class
).
getType
());
List
<
ShopChestBatchUseTable
>
shopChestBatchUseTableList
=
Grasscutter
.
getGsonFactory
().
fromJson
(
fileReader
,
TypeToken
.
getParameterized
(
Collection
.
class
,
ShopChestBatchUseTable
.
class
).
getType
());
if
(
shopChestBatchUseTableList
.
size
()
>
0
)
{
if
(
shopChestBatchUseTableList
.
size
()
>
0
)
{
getShopChestBatchUseData
().
addAll
(
shopChestBatchUseTableList
);
getShopChestBatchUseData
().
addAll
(
shopChestBatchUseTableList
);
Grasscutter
.
getLogger
().
info
(
"ShopChestBatchUse data successfully loaded."
);
Grasscutter
.
getLogger
().
debug
(
"ShopChestBatchUse data successfully loaded."
);
}
else
{
}
else
{
Grasscutter
.
getLogger
().
error
(
"Unable to load ShopChestBatchUse data. ShopChestBatchUse data size is 0."
);
Grasscutter
.
getLogger
().
error
(
"Unable to load ShopChestBatchUse data. ShopChestBatchUse data size is 0."
);
}
}
...
...
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