mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-18 19:29:31 +00:00
Sanity check in the case that a brew is null for some reason
This commit is contained in:
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) {
|
||||
|
||||
Reference in new issue
Block a user