Skip to content

Commit

Permalink
bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Greymerk committed Aug 7, 2014
1 parent 3577ea9 commit f2fcd72
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ buildscript {

apply plugin: 'forge'

version = "1.7.10-1.3.4.1"
version = "1.7.10-1.3.4.3"
group= "ca.rivas.roguelike" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "roguelike"

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/greymerk/roguelike/Roguelike.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import cpw.mods.fml.common.event.FMLServerStartingEvent;
import cpw.mods.fml.common.registry.GameRegistry;

@Mod(modid="Roguelike", name="Roguelike Dungeons", version="1.3.4.2")
@Mod(modid="Roguelike", name="Roguelike Dungeons", version="1.3.4.3")

public class Roguelike {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public SecretFactory(SecretFactory toCopy){
}

public SecretFactory(JsonArray data){
secrets = new ArrayList<ISecretRoom>();
for(JsonElement e : data){
JsonObject room = e.getAsJsonObject();
String type = room.get("type").getAsString();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public SegmentGenerator(JsonObject json){
String archType = json.get("arch").getAsString();
arch = Segment.valueOf(archType);

this.segments = new WeightedRandomizer<Segment>();
JsonArray segmentList = json.get("segments").getAsJsonArray();
for(JsonElement e : segmentList){
JsonObject segData = e.getAsJsonObject();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ private ItemStack book(){
"-greymerk\n";

String page2 =
"Roguelike Dungeons v1.3.4.2\n" +
"Roguelike Dungeons v1.3.4.3\n" +
"Aug 6th 2014\n\n" +
"Credits\n\n" +
"Author: Greymerk\n\n" +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public void setBlock(World world, Random rand, int x, int y, int z) {
@Override
public void setBlock(World world, Random rand, int x, int y, int z, boolean fillAir, boolean replaceSolid) {
int size = blocks.size();
int choice = (x % size + y % size + z % size) % size;
int choice = Math.abs((x % size + y % size + z % size)) % size;
IBlockFactory block = blocks.get(choice);
block.setBlock(world, rand, x, y, z, fillAir, replaceSolid);
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/mcmod.info
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"modid" : "Roguelike",
"name" : "Roguelike Dungeons",
"description" : "Adds randomized dungeons to the world",
"version" : "1.3.4.2",
"version" : "1.3.4.3",
"url" : "dungeons.homelinux.org",
"authorList" : ["Greymerk"],
"mcversion" : "1.7.10"
Expand Down

0 comments on commit f2fcd72

Please sign in to comment.