-
-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
34 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
src/main/java/de/srendi/advancedperipherals/common/configuration/UnsafeConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package de.srendi.advancedperipherals.common.configuration; | ||
|
||
import net.minecraftforge.common.ForgeConfigSpec; | ||
|
||
public class UnsafeConfig { | ||
|
||
private static ForgeConfigSpec.BooleanValue enableUnsafe; | ||
private static ForgeConfigSpec.BooleanValue ignoreTurtlePeripheralItemNBT; | ||
|
||
public static void build(final ForgeConfigSpec.Builder builder) { | ||
enableUnsafe = builder.comment("By setting this value to true, I understand all operations below are danger to my adventure, and if they caused unexpected behaviour in my world, I will not consider it as AP's liability").define("enableUnsafe", false); | ||
ignoreTurtlePeripheralItemNBT = builder.comment("Ignore turtle peripheral item's NBT when equipping. **YOU WILL LOST ALL NBT ON THE ITEM**").define("ignoreTurtlePeripheralItemNBT", false); | ||
} | ||
|
||
public static boolean enabled() { | ||
return enableUnsafe.get(); | ||
} | ||
|
||
public static boolean getIgnoreTurtlePeripheralItemNBT() { | ||
return enabled() && ignoreTurtlePeripheralItemNBT.get(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters