mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-21 20:52:20 +00:00
format
This commit is contained in:
1 parent
a71dd19fc2
commit
5b7a5f15e3
1 file changed
+11
-11
+11
-11
@@ -35,20 +35,20 @@ public class SubTileGourmaryllis extends SubTileGenerating {
|
||||
int storedMana = 0;
|
||||
|
||||
private int getFoodHungerValue(ItemStack stack) {
|
||||
if (stack == null) return -1;
|
||||
if (stack == null) return -1;
|
||||
|
||||
// Vanilla food
|
||||
if (stack.getItem() instanceof ItemFood) {
|
||||
return ((ItemFood) stack.getItem()).func_150905_g(stack);
|
||||
}
|
||||
// Vanilla food
|
||||
if (stack.getItem() instanceof ItemFood) {
|
||||
return ((ItemFood) stack.getItem()).func_150905_g(stack);
|
||||
}
|
||||
|
||||
// GregTech food
|
||||
if (Botania.gt5Loaded) {
|
||||
return GTFoodHelper.getFoodHungerValue(stack);
|
||||
}
|
||||
// GregTech food
|
||||
if (Botania.gt5Loaded) {
|
||||
return GTFoodHelper.getFoodHungerValue(stack);
|
||||
}
|
||||
|
||||
return -1;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onUpdate() {
|
||||
|
||||
Reference in new issue
Block a user