fixed hungeroverlay, for real

This commit is contained in:
Dewy REDACTED 2020-04-19 22:46:16 +01:00
parent 3fadc40304
commit c793b04fd3
No known key found for this signature in database
GPG Key ID: 0CAA84A783228505
1 changed files with 2 additions and 2 deletions

View File

@ -4,12 +4,12 @@ import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemFood;
import net.minecraft.item.ItemStack;
import net.minecraft.util.FoodStats;
import net.minecraftforge.fml.common.ObfuscationReflectionHelper;
import net.minecraftforge.fml.relauncher.ReflectionHelper;
import java.lang.reflect.Field;
public class HungerOverlayUtils {
protected static final Field foodExhaustion = ObfuscationReflectionHelper.findField(FoodStats.class, "foodExhaustionLevel");
protected static final Field foodExhaustion = ReflectionHelper.findField(FoodStats.class, "foodExhaustionLevel", "field_75126_c", "c");
public static class BasicFoodValues {
public final int hunger;