Skip to content

Commit

Permalink
20231025
Browse files Browse the repository at this point in the history
  • Loading branch information
PiggyChu620 committed Oct 25, 2023
1 parent a207c55 commit cb080ca
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Mindustry Java Mod - Mineable Alloys 1.3
# Mindustry Java Mod - Mineable Alloys 1.3.1
A Java Mindustry mod.

All alloys/intermetallic are now mineable, currently only works on Serpulo<sup>1</sup> and editor
Expand All @@ -25,6 +25,9 @@ All alloys/intermetallic are now mineable, currently only works on Serpulo<sup>1
- Add cache layers of liquids/gases
- Change settings to chances in percentage of appearance, set it to 0 to disable

*v1.3.1*
- Fix loading crash

---

**1.** Erekir ore placements are quite complicated, it's not as "regular" as Serpulo, which could be easily scaled to any amount of resources, I have tried a few placements but it's all not quite right and often "screw things up", since Erekir maps are mostly "packed" and require faster strategies and reactions, adding new resources to it seems to disrupt that and hinder you instead, even though making high-end resources such as carbide directly mineable seems tempting, but in reality, it's all more of a hindrance than a help, I don't know though, maybe I could find a perfect parameter in the future to place the ores, who knows?
Expand Down
4 changes: 2 additions & 2 deletions mod.hjson
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#the mod name as displayed in-game
displayName: "Mineable Alloys v1.3"
displayName: "Mineable Alloys v1.3.1"

repo: "PiggyChu620/MindustryMineableAlloys"

Expand All @@ -16,7 +16,7 @@ main: "ma620.MA620Mod"
description: "Make all alloys/intermetallic directly mineable, currently only works on Serpulo and editor"

#the mod version
version: 1.3
version: 1.3.1

#the minimum game build required to run this mod
minGameVersion: 140
Expand Down
11 changes: 10 additions & 1 deletion src/ma620/content/MA620Setting.java
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,16 @@ public Float getValue(){
}

@Override
public void setDefault(){
public void setDefault()
{
try
{
settings.getFloat(key);
}
catch (Exception e)
{
reset=true;
}
if(!Core.settings.has(key) || reset) Core.settings.put(key, def);
}

Expand Down

0 comments on commit cb080ca

Please sign in to comment.