Fix NPE with Portable Altar tooltip

This commit is contained in:
miozune committed 2022-11-01 11:06:17 +09:00
1 parent 5028eaa7e3
commit 91e16818d5
1 file changed
+2
@@ -35,6 +35,8 @@ public class PortableAltarBlock extends ItemBlock
public void addHiddenTooltip(ItemStack par1ItemStack, List par3List)
{
if (!par1ItemStack.hasTagCompound()) return;
String capacity = par1ItemStack.getTagCompound().getString("capacity");
int alterTier = par1ItemStack.getTagCompound().getInteger("upgradeLevel");
int currentEssence = par1ItemStack.getTagCompound().getInteger("currentEssence");