From e64e481a1128b20f0823eb5cd77e281be4972db9 Mon Sep 17 00:00:00 2001 From: Nicholas Ignoffo Date: Sun, 8 Apr 2018 12:55:23 -0700 Subject: [PATCH] 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. --- .../provider/DataProviderRitualController.java | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/main/java/WayofTime/bloodmagic/compat/waila/provider/DataProviderRitualController.java b/src/main/java/WayofTime/bloodmagic/compat/waila/provider/DataProviderRitualController.java index 2d5f1975..9b8c8c12 100644 --- a/src/main/java/WayofTime/bloodmagic/compat/waila/provider/DataProviderRitualController.java +++ b/src/main/java/WayofTime/bloodmagic/compat/waila/provider/DataProviderRitualController.java @@ -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")));