Sanity check in the case that a brew is null for some reason

This commit is contained in:
Lizbeth Rika committed 2015-02-06 12:33:17 +00:00
1 parent 72c97d333b
commit a959bad320
1 file changed
+1 -1
@@ -166,7 +166,7 @@ public abstract class ItemBrewBase extends ItemMod implements IBrewItem {
}
public static void setBrew(ItemStack stack, Brew brew) {
setBrew(stack, brew.getKey());
setBrew(stack, (brew == null ? BotaniaAPI.fallbackBrew : brew).getKey());
}
public static void setBrew(ItemStack stack, String brew) {