Skip to content

Commit

Permalink
First Set of Parser Changes
Browse files Browse the repository at this point in the history
Separator from "; " to ";"
  • Loading branch information
voidsong-dragonfly authored Oct 13, 2019
1 parent 315707d commit 6590cb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/zmaster587/libVulpes/util/XMLRecipeLoader.java
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ else if(node.getNodeName().equals("oreDict")) {
}
else if(node.getNodeName().equals("fluidStack")) {

String splitStr[] = node.getTextContent().split("; ");
String splitStr[] = node.getTextContent().split(";");
Fluid fluid;
if((fluid = FluidRegistry.getFluid(splitStr[0])) != null) {
int amount = 1000;
Expand Down Expand Up @@ -270,7 +270,7 @@ public static String writeRecipe(IRecipe recipe) {
}
}
for(FluidStack stack : recipe.getFluidIngredients()) {
string += "\t\t\t<fluidStack>" + FluidRegistry.getDefaultFluidName(stack.getFluid()).split(":")[1] + "; " + stack.amount + "</fluidStack>\n";
string += "\t\t\t<fluidStack>" + FluidRegistry.getDefaultFluidName(stack.getFluid()).split(":")[1] + ";" + stack.amount + "</fluidStack>\n";
}
string += "\t\t</input>\n\t\t<output>\n";

Expand Down

0 comments on commit 6590cb1

Please sign in to comment.