Skip to content

Commit

Permalink
The old way worked but this is better.
Browse files Browse the repository at this point in the history
  • Loading branch information
koolkrafter5 committed Jan 18, 2025
1 parent 5101dd4 commit 413fc02
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,14 @@
import java.util.ArrayList;
import java.util.List;

import com.google.gson.annotations.Expose;

public class MeteorReagent {

@Expose
public boolean disableExplosions = false;
@Expose
public boolean invertExplosionBlockDamage = false;
@Expose
public int radiusChange = 0;
@Expose
public int fillerChanceChange = 0;
@Expose
public int rawFillerChanceChange = 0;
@Expose
public String[] filler = {};
public List<MeteorParadigmComponent> parsedFiller = new ArrayList<>();
public transient List<MeteorParadigmComponent> parsedFiller = new ArrayList<>();

}
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class MeteorReagentRegistry {
public static Map<Reagent, MeteorReagent> reagents = new HashMap<>();

public static void loadConfig() {
Gson gson = new GsonBuilder().setPrettyPrinting().excludeFieldsWithoutExposeAnnotation().create();
Gson gson = new GsonBuilder().setPrettyPrinting().create();
File file = new File("config/BloodMagic/meteors/reagents/");
if (!file.isDirectory()) {
MeteorReagentRegistry.generateDefaultConfig();
Expand Down

0 comments on commit 413fc02

Please sign in to comment.