mirror of
https://github.com/GTNewHorizons/Avaritia.git
synced 2026-11-17 19:05:13 +00:00
Don't Gotta Go Fast
Fixes https://github.com/SpitefulFox/Avaritia/issues/106 https: //github.com/SpitefulFox/Avaritia/commit/60d5c101b1d99cbff4d11522581d6e247b3b1a66 Co-Authored-By: SpitefulFox <[email protected]>
This commit is contained in:
1 parent
95c7b2bd39
commit
30de3c00a1
2 files changed
+5
-2
No files matched your search
@@ -12,6 +12,7 @@ public class Config {
|
||||
public static boolean bedrockBreaker = true;
|
||||
public static boolean boringFood = false;
|
||||
public static boolean fractured = false;
|
||||
public static boolean fast = true;
|
||||
|
||||
public static boolean thaumic = true;
|
||||
public static boolean sc2 = true;
|
||||
@@ -62,6 +63,7 @@ public class Config {
|
||||
bedrockBreaker = conf.get("general", "Break Bedrock", bedrockBreaker, "Disable if you don't want the World Breaker to break unbreakable blocks").getBoolean(true);
|
||||
boringFood = conf.get("general", "Boring Food", boringFood, "Enable to keep the Ultimate Stew and Cosmic Meatballs from grabbing more ingredients").getBoolean(false);
|
||||
fractured = conf.get("general", "Fractured Ores", fractured, "Enable if you don't have Rotarycraft installed and want some buggy fractured ores").getBoolean(false);
|
||||
fast = conf.get("general", "Gotta Go Fast", fast, "Disable if the Infinity Boots' speed boost is too ridiculous").getBoolean(true);
|
||||
|
||||
conf.addCustomCategoryComment("compatibility", "Disable to stop compatibility with that particular mod. Will not use the mod in recipes or add new items for that mod.");
|
||||
thaumic = conf.get("compatibility", "Thaumcraft", true).getBoolean(true);
|
||||
|
||||
@@ -2,6 +2,7 @@ package fox.spiteful.avaritia.items;
|
||||
|
||||
import com.google.common.collect.Multimap;
|
||||
import fox.spiteful.avaritia.Avaritia;
|
||||
import fox.spiteful.avaritia.Config;
|
||||
import fox.spiteful.avaritia.LudicrousText;
|
||||
import fox.spiteful.avaritia.compat.Belmont;
|
||||
import fox.spiteful.avaritia.compat.Compat;
|
||||
@@ -168,7 +169,7 @@ public class ItemArmorInfinity extends ItemArmor implements ICosmicRenderItem, I
|
||||
if (hasPhantomInk(stack))
|
||||
list.add(StatCollector.translateToLocal("botaniamisc.hasPhantomInk").replaceAll("&", "\u00a7"));
|
||||
}
|
||||
if (this.slot == 3) {
|
||||
if (this.slot == 3 && Config.fast) {
|
||||
list.add("");
|
||||
list.add(EnumChatFormatting.BLUE+"+"+EnumChatFormatting.ITALIC+LudicrousText.makeSANIC("SANIC")+EnumChatFormatting.RESET+""+EnumChatFormatting.BLUE+"% Speed");
|
||||
}
|
||||
@@ -319,7 +320,7 @@ public class ItemArmorInfinity extends ItemArmor implements ICosmicRenderItem, I
|
||||
}
|
||||
|
||||
// shoes
|
||||
Boolean hasFoot = playerHasFoot(player);
|
||||
Boolean hasFoot = playerHasFoot(player) && Config.fast;
|
||||
if (playersWithFoot.contains(key)) {
|
||||
if (hasFoot) {
|
||||
boolean flying = player.capabilities.isFlying;
|
||||
|
||||
Reference in new issue
Block a user