Fix #162 Crash when hovering over drinks with AppleSkin and AppleCore

This commit is contained in:
mezz committed 2017-07-13 23:25:53 -07:00
1 parent 83d9da7797
commit 934bb3b8f9
1 file changed
+3
@@ -161,6 +161,9 @@ public class ItemFluidContainer extends ItemFood implements IItemModelRegister {
private boolean isDrinkable(final ItemStack stack) {
final FluidStack fluid = getContained(stack);
if (fluid == null) {
return false;
}
final IDrinkLiquid liquid = DrinkManager.getLiquid(fluid);
return liquid != null && liquid.isConsumable();
}