From 4209ffcd0406639cc42058d730e11a990576daa0 Mon Sep 17 00:00:00 2001 From: David Vierra Date: Fri, 13 Jul 2018 04:01:25 -1000 Subject: [PATCH] Comparing strings with `==` --- .../java/com/gmail/pharaun/gregtania/proxies/CommonProxy.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/pharaun/gregtania/proxies/CommonProxy.java b/src/main/java/com/gmail/pharaun/gregtania/proxies/CommonProxy.java index f63f8e1..7278a05 100644 --- a/src/main/java/com/gmail/pharaun/gregtania/proxies/CommonProxy.java +++ b/src/main/java/com/gmail/pharaun/gregtania/proxies/CommonProxy.java @@ -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());