mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-20 20:22:35 +00:00
Fix #162 Crash when hovering over drinks with AppleSkin and AppleCore
This commit is contained in:
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();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user