Skip to content

Commit

Permalink
Removed debugging code that caused underwater structures to generate too
Browse files Browse the repository at this point in the history
frequently.
  • Loading branch information
gottsch committed Nov 21, 2019
1 parent 9f08978 commit 93e15c5
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Treasure2-1.12.2/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ processResources
}
task deleteOldJar(type: Delete) {
delete fileTree("${dest_folder}") {
include "**/${mod_name}-mc${mc_version}-f${forge_version}.*"
include "**/${mod_name}-*.*"
}
}
task copyJar(type: Copy) {
Expand Down
2 changes: 1 addition & 1 deletion Treasure2-1.12.2/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ package_group=someguyssoftware.treasure2
# user alpha, beta, or v (for version)
mod_version_type=v

mod_version=1.6.2
mod_version=1.6.3

#versions
mc_version=1.12.2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public class Treasure extends AbstractMod {
// constants
public static final String MODID = "treasure2";
protected static final String NAME = "Treasure2";
protected static final String VERSION = "1.6.2";
protected static final String VERSION = "1.6.3";

public static final String UPDATE_JSON_URL = "https://raw.githubusercontent.com/gottsch/gottsch-minecraft-Treasure/master/Treasure2-1.12.2/update.json";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public GeneratorResult<GeneratorData> generate(World world, Random random, ICoor
}

// TEMP: test against water probability. this is used to reduce the occurences of submerged structures without re-writting the entire generation system.
if (!RandomHelper.checkProbability(random, 100/*TreasureConfig.waterStructureProbability*/)) {
if (!RandomHelper.checkProbability(random, TreasureConfig.waterStructureProbability)) {
Treasure.logger.debug("did not meet water structure probability");
return result.fail();
}
Expand Down
2 changes: 1 addition & 1 deletion Treasure2-1.12.2/src/resources/mcmod.info
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"modid": "treasure2",
"name": "Treasure2!",
"description": "",
"version": "1.6.2",
"version": "1.6.3",
"mcversion": "1.12.2",
"url": "",
"updateUrl": "",
Expand Down
7 changes: 4 additions & 3 deletions Treasure2-1.12.2/update.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"homepage": "https://minecraft.curseforge.com/projects/treasure2",
"promos": {
"1.12.2-latest": "1.6.2",
"1.12.2-recommended": "1.6.2"
"1.12.2-latest": "1.6.3",
"1.12.2-recommended": "1.6.3"
},
"1.12.2": {
"0.5.0": "alpha release",
Expand Down Expand Up @@ -30,7 +30,8 @@
"1.5.1": "Fixed Server crash on load - due to biome.getName().\n",
"1.6.0": "Added White and Black Pearls.\nUpdated Rare and Epic loot tables with pearls.\nAll Generators implement IGenerator.\nRefactored WellGenerators to use Structures.\nRefactored AbstractChestGenerator.\nFixed stacked coins only return 1 loot item bug.\nFixed Wishing Well loot selection.\nFixed all Structure rotation spawn points and checks.\nUpdate all commands be prefixed with t2-.\n",
"1.6.1": "Fixed NPE on AbstractTreasureChest",
"1.6.2": "Removed GUI config that was inadvertently added last update."
"1.6.2": "Removed GUI config that was inadvertently added last update.",
"1.6.3": "Removed debugging code that was causing underwater structures to generate too frequently."

}
}
Expand Down

0 comments on commit 93e15c5

Please sign in to comment.