Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix total config collapse on improper update #275

Merged
merged 1 commit into from
Apr 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ org.gradle.jvmargs=-Xmx1G
loader_version=0.14.21

# Mod Properties
mod_version=9.0.2
mod_version=9.0.3
maven_group=chronosacaria
archives_base_name=mcdw

Expand Down
12 changes: 6 additions & 6 deletions src/main/java/chronosacaria/mcdw/enums/IMeleeWeaponID.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ static IMeleeWeaponID[] values() {
MeleeStats getMeleeStats();

class MeleeStats {
boolean isEnabled;
String material;
int damage;
float attackSpeed;
String[] repairIngredient;
boolean isEnabled = true;
String material = "iron";
int damage = 0;
float attackSpeed = -3f;
String[] repairIngredient = new String[]{};

public MeleeStats meleeStats(boolean isEnabled, String material, int damage, float attackSpeed, String[] repairIngredient) {
this.isEnabled = isEnabled;
Expand All @@ -40,4 +40,4 @@ public MeleeStats meleeStats(boolean isEnabled, String material, int damage, flo
return this;
}
}
}
}
14 changes: 7 additions & 7 deletions src/main/java/chronosacaria/mcdw/enums/IRangedWeaponID.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ static IRangedWeaponID[] values() {
RangedStats getRangedStats();

class RangedStats {
public boolean isEnabled;
public String material;
public double projectileDamage;
public int drawSpeed;
public float range;
String[] repairIngredient;
public boolean isEnabled = true;
public String material = "iron";
public double projectileDamage = 0.0;
public int drawSpeed = 20;
public float range = 16f;
String[] repairIngredient = new String[]{};

public RangedStats rangedStats(boolean isEnabled, String material, double projectileDamage, int drawSpeed, float range, String[] repairIngredient) {
this.isEnabled = isEnabled;
Expand All @@ -50,4 +50,4 @@ public RangedStats rangedStats(boolean isEnabled, String material, double projec
return this;
}
}
}
}
8 changes: 4 additions & 4 deletions src/main/java/chronosacaria/mcdw/enums/IShieldID.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ static IShieldID[] values() {
ShieldStats getShieldStats();

class ShieldStats {
boolean isEnabled;
String material;
String[] repairIngredient;
boolean isEnabled = true;
String material = "diamond";
String[] repairIngredient = new String[]{};

public ShieldStats shieldStats(boolean isEnabled, String material, String[] repairIngredient) {
this.isEnabled = isEnabled;
Expand All @@ -38,4 +38,4 @@ public ShieldStats shieldStats(boolean isEnabled, String material, String[] repa
return this;
}
}
}
}
Loading