Config option for Goggles upgrade
This commit is contained in:
parent
c1aeb2e7f6
commit
e219b50589
|
@ -123,6 +123,7 @@ public class ConfigHandler
|
||||||
|
|
||||||
// Compat
|
// Compat
|
||||||
public static int wailaAltarDisplayMode;
|
public static int wailaAltarDisplayMode;
|
||||||
|
public static boolean thaumcraftGogglesUpgrade;
|
||||||
|
|
||||||
public static void init(File file)
|
public static void init(File file)
|
||||||
{
|
{
|
||||||
|
@ -248,6 +249,7 @@ public class ConfigHandler
|
||||||
category = "Compatibility";
|
category = "Compatibility";
|
||||||
config.addCustomCategoryComment(category, "Compatibility settings");
|
config.addCustomCategoryComment(category, "Compatibility settings");
|
||||||
wailaAltarDisplayMode = config.getInt("wailaAltarDisplayMode", category + ".waila", 1, 0, 2, "The mode for the Waila display on Blood Altars.\n0 - Always display information\n1 - Only display when Divination/Seer sigil is in hand.\n2 - Only display when Divination/Seer sigil is in inventory");
|
wailaAltarDisplayMode = config.getInt("wailaAltarDisplayMode", category + ".waila", 1, 0, 2, "The mode for the Waila display on Blood Altars.\n0 - Always display information\n1 - Only display when Divination/Seer sigil is in hand.\n2 - Only display when Divination/Seer sigil is in inventory");
|
||||||
|
thaumcraftGogglesUpgrade = config.getBoolean("thaumcraftGogglesUpgrade", category + ".thaumcraft", true, "Allows the Living Helmet to be upgraded with Goggles of Revealing in an Anvil.");
|
||||||
|
|
||||||
config.save();
|
config.save();
|
||||||
}
|
}
|
||||||
|
|
|
@ -94,6 +94,8 @@ public class EventHandler
|
||||||
|
|
||||||
@SubscribeEvent
|
@SubscribeEvent
|
||||||
public void onAnvil(AnvilUpdateEvent event)
|
public void onAnvil(AnvilUpdateEvent event)
|
||||||
|
{
|
||||||
|
if (ConfigHandler.thaumcraftGogglesUpgrade)
|
||||||
{
|
{
|
||||||
if (event.left.getItem() == ModItems.livingArmourHelmet && event.right.getItem() == Constants.Compat.THAUMCRAFT_GOGGLES && !event.right.isItemDamaged())
|
if (event.left.getItem() == ModItems.livingArmourHelmet && event.right.getItem() == Constants.Compat.THAUMCRAFT_GOGGLES && !event.right.isItemDamaged())
|
||||||
{
|
{
|
||||||
|
@ -105,6 +107,7 @@ public class EventHandler
|
||||||
event.output = output;
|
event.output = output;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@SubscribeEvent
|
@SubscribeEvent
|
||||||
public void onBucketFill(FillBucketEvent event)
|
public void onBucketFill(FillBucketEvent event)
|
||||||
|
|
Loading…
Reference in a new issue