Fix client having NBT that the server doesn't
This was reported months ago but I forgot because it was in the WRONG PLACE.
This commit is contained in:
parent
137975331c
commit
09b331fdbe
31 changed files with 66 additions and 61 deletions
|
@ -46,10 +46,12 @@ public class ItemExperienceBook extends Item implements IVariantProvider
|
|||
{
|
||||
tooltip.add(TextHelper.localizeEffect("tooltip.BloodMagic.experienceTome"));
|
||||
|
||||
if (!stack.hasTagCompound())
|
||||
return;
|
||||
|
||||
double storedExp = getStoredExperience(stack);
|
||||
|
||||
tooltip.add(TextHelper.localizeEffect("tooltip.BloodMagic.experienceTome.exp", (int) storedExp));
|
||||
|
||||
tooltip.add(TextHelper.localizeEffect("tooltip.BloodMagic.experienceTome.expLevel", (int) getLevelForExperience(storedExp)));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue