diff options
| author | Linnea Gräf <nea@nea.moe> | 2024-03-07 09:27:22 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-07 09:27:22 +0100 |
| commit | 398f621f7db3042e9205953d3064a9060592b446 (patch) | |
| tree | 37db92a9bf8f97af437d8e3e948171c3d169e12e /src/main/java/io/github/moulberry/notenoughupdates/util/ItemUtils.java | |
| parent | 4c24769b971cb9ed6d6edf267aeebf1a8fe45766 (diff) | |
| download | notenoughupdates-398f621f7db3042e9205953d3064a9060592b446.tar.gz notenoughupdates-398f621f7db3042e9205953d3064a9060592b446.tar.bz2 notenoughupdates-398f621f7db3042e9205953d3064a9060592b446.zip | |
Fix fuel bar only updating if you aren't using the drill (#1020)
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/util/ItemUtils.java')
| -rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/util/ItemUtils.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/util/ItemUtils.java b/src/main/java/io/github/moulberry/notenoughupdates/util/ItemUtils.java index bdea26d5..25732459 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/util/ItemUtils.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/util/ItemUtils.java @@ -38,6 +38,7 @@ import net.minecraft.nbt.NBTTagList; import net.minecraft.nbt.NBTTagString; import net.minecraft.util.EnumChatFormatting; import net.minecraft.util.MathHelper; +import org.jetbrains.annotations.NotNull; import java.nio.charset.StandardCharsets; import java.text.DecimalFormat; @@ -208,7 +209,7 @@ public class ItemUtils { return text; } - public static NBTTagCompound getExtraAttributes(ItemStack itemStack) { + public static @NotNull NBTTagCompound getExtraAttributes(ItemStack itemStack) { NBTTagCompound tag = getOrCreateTag(itemStack); NBTTagCompound extraAttributes = tag.getCompoundTag("ExtraAttributes"); tag.setTag("ExtraAttributes", extraAttributes); |
