Fix errant MRS tags displaying on fresh MRSs (#1265)

I literally totally hate everybody who downvoted my comment in that issue
and will show them my wrath.
This commit is contained in:
Nicholas Ignoffo 2018-04-08 12:55:23 -07:00
parent dc7af258ff
commit e64e481a11

View file

@ -32,14 +32,15 @@ public class DataProviderRitualController implements IWailaDataProvider {
NBTTagCompound tag = accessor.getNBTData();
if (tag.getBoolean("master")) {
if (tag.hasKey("ritual"))
if (tag.hasKey("ritual")) {
currenttip.add(TextHelper.localizeEffect(tag.getString("ritual")));
if (tag.hasKey("owner"))
currenttip.add(TextHelper.localizeEffect("tooltip.bloodmagic.currentOwner", tag.getString("owner")));
if (!tag.getBoolean("active"))
currenttip.add(TextHelper.localizeEffect("tooltip.bloodmagic.deactivated"));
if (!tag.getBoolean("enabled"))
currenttip.add(TextHelper.localizeEffect("tooltip.bloodmagic.config.disabled"));
if (tag.hasKey("owner"))
currenttip.add(TextHelper.localizeEffect("tooltip.bloodmagic.currentOwner", tag.getString("owner")));
if (!tag.getBoolean("active"))
currenttip.add(TextHelper.localizeEffect("tooltip.bloodmagic.deactivated"));
if (!tag.getBoolean("enabled"))
currenttip.add(TextHelper.localizeEffect("tooltip.bloodmagic.config.disabled"));
}
} else {
if (tag.hasKey("ritual")) {
currenttip.add(TextHelper.localizeEffect(tag.getString("ritual")));