Skip to content

Commit

Permalink
Update spawn wither tree command and gradle file.
Browse files Browse the repository at this point in the history
  • Loading branch information
gottsch committed Dec 13, 2019
1 parent a8c27d6 commit 2004cd3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 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
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@

import java.util.Random;

import com.someguyssoftware.gottschcore.positional.Coords;
import com.someguyssoftware.treasure2.Treasure;
import com.someguyssoftware.treasure2.config.TreasureConfig;
import com.someguyssoftware.treasure2.worldgen.WitherTreeWorldGenerator;

import net.minecraft.command.CommandBase;
import net.minecraft.command.ICommandSender;
Expand Down Expand Up @@ -48,8 +51,8 @@ public void execute(MinecraftServer server, ICommandSender commandSender, String
Random random = new Random();
//BlockPos pos = new BlockPos(x, y, z);
// TODO get this to work
// WitherTreeGenerator gen = new WitherTreeGenerator();
// gen.generate(world, random, new Coords(x, y, z), TreasureConfig.WITHER_TREE); //Configs.witherTreeConfig);
WitherTreeWorldGenerator gen = new WitherTreeWorldGenerator();
gen.generate(world, random, new Coords(x, y, z), TreasureConfig.WITHER_TREE);
}
}
catch(Exception e) {
Expand Down

0 comments on commit 2004cd3

Please sign in to comment.