Skip to content

Commit

Permalink
Add disclaimer for 1.12 cacti boxes
Browse files Browse the repository at this point in the history
  • Loading branch information
Wyvest committed Jul 16, 2024
1 parent 5ba2f18 commit 6884b18
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ mod_id=patcher
# betas will be "1.x.x+beta-y" / "1.x.x+branch_beta-y"
# rcs will be 1.x.x+rc-y
# extra branches will be 1.x.x+branch-y
mod_version=1.9.3-alpha.6
mod_version=1.9.3-alpha.7
# Sets the name of the jar file that you put in your 'mods' folder.
mod_archives_name=PolyPatcher

Expand Down
12 changes: 10 additions & 2 deletions src/main/java/club/sk1er/patcher/config/PatcherConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -535,10 +535,18 @@ public class PatcherConfig extends Config {
)
public static boolean futureHitBoxes = true;

@Info(
text = "Exclude Cacti from 1.12 Boxes requires a restart once toggled.",
category = "Miscellaneous", subcategory = "Blocks",
type = InfoType.WARNING,
size = 2
)
private static boolean cactusHitboxExclusionInfo = true;

@Switch(
name = "Exclude Cacti from 1.12 Boxes",
description = "Exclude cacti from the 1.12 selection box changes, as it would actually shrink rather than increase in size.",
category = "Miscellaneous", subcategory = "Blocks"
category = "Miscellaneous", subcategory = "Blocks", size = 2
)
public static boolean cactusHitboxExclusion = true;

Expand Down Expand Up @@ -1977,7 +1985,7 @@ public PatcherConfig() {
//noinspection ConstantConditions
Supplier<Boolean> minecraft112 = () -> ForgeVersion.mcVersion.equals("1.12.2");
Arrays.asList(
"resourceExploitFix", "newKeybindHandling", "separateResourceLoading", "futureHitBoxes", "cactusHitboxExclusion", "farmSelectionBoxesInfo",
"resourceExploitFix", "newKeybindHandling", "separateResourceLoading", "futureHitBoxes", "cactusHitboxExclusion", "farmSelectionBoxesInfo", "cactusHitboxExclusionInfo",
"leftHandInFirstPerson", "extendedChatLength", "chatPosition",
"parallaxFix", "extendChatBackground", "vanillaGlassPanes", "heldItemLighting"
).forEach(property -> hideIf(property, minecraft112));
Expand Down

0 comments on commit 6884b18

Please sign in to comment.