Skip to content

Commit

Permalink
Comparing strings with ==
Browse files Browse the repository at this point in the history
  • Loading branch information
codewarrior0 committed Jul 13, 2018
1 parent 4e76fbc commit 4209ffc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public void init(FMLInitializationEvent event) {
Object input = recipe.getInput();
if ((input instanceof ItemStack)) {
input = convertStoneToGreg((ItemStack) input);
} else if (input == "stone") {
} else if (input.equals("stone")) {
input = new ItemStack(Blocks.stone);
}
ItemStack output = convertStoneToGreg(recipe.getOutput());
Expand Down

0 comments on commit 4209ffc

Please sign in to comment.