mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-10 18:03:20 +08:00
fix indentation
This commit is contained in:
parent
95bc655882
commit
c26bf08d90
@ -52,7 +52,7 @@ public class EnergyManager {
|
|||||||
public static void initialize() {
|
public static void initialize() {
|
||||||
// Read the data we need for monster energy drops.
|
// Read the data we need for monster energy drops.
|
||||||
try (Reader fileReader = new InputStreamReader(DataLoader.load("EnergyDrop.json"))) {
|
try (Reader fileReader = new InputStreamReader(DataLoader.load("EnergyDrop.json"))) {
|
||||||
List<EnergyDropEntry> energyDropList = Grasscutter.getGsonFactory().fromJson(fileReader, TypeToken.getParameterized(Collection.class, EnergyDropEntry.class).getType());
|
List<EnergyDropEntry> energyDropList = Grasscutter.getGsonFactory().fromJson(fileReader, TypeToken.getParameterized(Collection.class, EnergyDropEntry.class).getType());
|
||||||
|
|
||||||
for (EnergyDropEntry entry : energyDropList) {
|
for (EnergyDropEntry entry : energyDropList) {
|
||||||
energyDropData.put(entry.getDropId(), entry.getDropList());
|
energyDropData.put(entry.getDropId(), entry.getDropList());
|
||||||
@ -66,7 +66,7 @@ public class EnergyManager {
|
|||||||
|
|
||||||
// Read the data for particle generation from skills
|
// Read the data for particle generation from skills
|
||||||
try (Reader fileReader = new InputStreamReader(DataLoader.load("SkillParticleGeneration.json"))) {
|
try (Reader fileReader = new InputStreamReader(DataLoader.load("SkillParticleGeneration.json"))) {
|
||||||
List<SkillParticleGenerationEntry> skillParticleGenerationList = Grasscutter.getGsonFactory().fromJson(fileReader, TypeToken.getParameterized(Collection.class, SkillParticleGenerationEntry.class).getType());
|
List<SkillParticleGenerationEntry> skillParticleGenerationList = Grasscutter.getGsonFactory().fromJson(fileReader, TypeToken.getParameterized(Collection.class, SkillParticleGenerationEntry.class).getType());
|
||||||
|
|
||||||
for (SkillParticleGenerationEntry entry : skillParticleGenerationList) {
|
for (SkillParticleGenerationEntry entry : skillParticleGenerationList) {
|
||||||
skillParticleGenerationData.put(entry.getAvatarId(), entry.getAmountList());
|
skillParticleGenerationData.put(entry.getAvatarId(), entry.getAmountList());
|
||||||
|
Loading…
Reference in New Issue
Block a user