Skip to content

Commit

Permalink
sync sakura-ryoko/litematica 1.21.3-0.20.4-sakura.2
Browse files Browse the repository at this point in the history
  • Loading branch information
TexBlock committed Jan 29, 2025
1 parent 785872a commit 347be87
Show file tree
Hide file tree
Showing 59 changed files with 6,964 additions and 3,235 deletions.
12 changes: 1 addition & 11 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,2 @@
## Change
- sync `sakura-ryoko/litematica` 1.21.3-0.20.2-sakura.5
- Bump for MaFgLib 0.2.1 (MaLiLib 1.21.3-0.22.3-sakura.4)
- Includes Config Gui Registration code
- fix: Easy Place Protocol not applying all possible rotation Directional Block States.
- Temporarily Disable the Data Fixers while browsing files in order to load the file Metadata Info Pane faster than previously.
- Update Chinese lang files, thanks to DreamingLri and snowlinouo, and zly2006
- feat: renderInfoOverlay Hotkey is now defaulted to allow an Empty Keybinding to match the Config Comment; this allows you to 'empty' the key bind, and have Info Overlay to always be active.
- fix: Info Overlay not being able to see Empty Block Entities.
- fix: InfoOverlay getting confused with the ClientWorld
- feat/fix: add switchable AO Processor config,renderAOModernEnabled in order to disable / enable the 'new' AO Processor code; or continue using the older code from 2018 without the "Shadows" that it creates in between block layers.
- Add File Info for when you are browsing Sponge and Vanilla Structure files. Note, that as of now, it is temporarily loading the files in order to get the Metadata, and due to the Data Fixers, there is sometimes a delay in doing so the first time for each file. I plan on trying to speed that up in a future release.
- sync `sakura-ryoko/litematica` 1.21.3-0.20.4-sakura.2
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ dependencies {
neoForge libs.neoforge

modImplementation libs.mafglib
modImplementation libs.badpackets
modImplementation libs.foxifiednetworking

implementation libs.jsr305
}
Expand Down
11 changes: 5 additions & 6 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ mappings_patch="1.21+build.4"
neoforge="21.3.58"

# Mod properties
version="0.1.16"
version="0.2.1"
maven-group="org.thinkingstudio.forgematica"
archives-name="Forgematica"

Expand All @@ -15,14 +15,14 @@ id-modrinth="dCKRaeBC"
id-curseforge="912441"

# Mod dependencies
mafglib="0.2.1-mc1.21.3"
badpackets="neo-0.8.1"
mafglib="0.2.4-mc1.21.3"
foxifiednetworking="1.21.3~dev-SNAPSHOT"

# Libraries
jsr305="3.0.2"

# Gradle plugin
architectury-loom = "1.7-SNAPSHOT"
architectury-loom = "1.9-SNAPSHOT"
modpublisher = "2.+"

[libraries]
Expand All @@ -31,10 +31,9 @@ yarn-mappings = { group = "net.fabricmc", name = "yarn", version.ref = "yarn_map
yarn-mappings-patch = { group = "dev.architectury", name = "yarn-mappings-patch-neoforge", version.ref = "mappings_patch"}

neoforge = { group = "net.neoforged", name = "neoforge", version.ref = "neoforge" }
badpackets = { group = "lol.bai", name = "badpackets", version.ref = "badpackets" }
foxifiednetworking = { group = "com.github.TexBlock", name = "FoxifiedNetworking", version.ref = "foxifiednetworking" }
mafglib = { group = "maven.modrinth", name = "mafglib", version.ref = "mafglib"}


jsr305 = { group = "com.google.code.findbugs", name = "jsr305", version.ref = "jsr305"}

[plugins]
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
3 changes: 1 addition & 2 deletions src/main/java/fi/dy/masa/litematica/Litematica.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ public class Litematica
{
public static final Logger logger = LogManager.getLogger(Reference.MOD_ID);

public static void onInitialize()
{
public static void onInitialize() {
InitializationHandler.getInstance().registerInitializationHandler(new InitHandler());
}

Expand Down
16 changes: 13 additions & 3 deletions src/main/java/fi/dy/masa/litematica/config/Configs.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package fi.dy.masa.litematica.config;

import java.io.File;
import java.util.List;
import com.google.common.collect.ImmutableList;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
Expand All @@ -12,6 +13,7 @@
import fi.dy.masa.malilib.config.IConfigBase;
import fi.dy.masa.malilib.config.IConfigHandler;
import fi.dy.masa.malilib.config.options.*;
import fi.dy.masa.malilib.hotkeys.IHotkey;
import fi.dy.masa.malilib.util.FileUtils;
import fi.dy.masa.malilib.util.JsonUtils;
import fi.dy.masa.malilib.util.MessageOutputType;
Expand All @@ -32,6 +34,7 @@ public static class Generic
public static final ConfigOptionList PASTE_REPLACE_BEHAVIOR = new ConfigOptionList("pasteReplaceBehavior", ReplaceBehavior.NONE).apply(GENERIC_KEY);
public static final ConfigOptionList PLACEMENT_REPLACE_BEHAVIOR = new ConfigOptionList("placementReplaceBehavior", ReplaceBehavior.ALL).apply(GENERIC_KEY);
public static final ConfigOptionList PLACEMENT_RESTRICTION_WARN = new ConfigOptionList("placementRestrictionWarn", MessageOutputType.ACTIONBAR).apply(GENERIC_KEY);
public static final ConfigOptionList SCHEMATIC_VCS_DELETE_MODE = new ConfigOptionList("schematicVcsDeleteMode", PlacementDeletionMode.MATCHING_BLOCK).apply(GENERIC_KEY);
public static final ConfigOptionList SELECTION_CORNERS_MODE = new ConfigOptionList("selectionCornersMode", CornerSelectionMode.CORNERS).apply(GENERIC_KEY);

public static final ConfigBoolean CUSTOM_SCHEMATIC_BASE_DIRECTORY_ENABLED = new ConfigBoolean("customSchematicBaseDirectoryEnabled", false).apply(GENERIC_KEY);
Expand Down Expand Up @@ -63,13 +66,14 @@ public static class Generic
public static final ConfigInteger EASY_PLACE_SWAP_INTERVAL = new ConfigInteger("easyPlaceSwapInterval", 0, 0, 10000).apply(GENERIC_KEY);
public static final ConfigBoolean EASY_PLACE_SWING_HAND = new ConfigBoolean("easyPlaceSwingHand", true).apply(GENERIC_KEY);
public static final ConfigBoolean EASY_PLACE_VANILLA_REACH = new ConfigBoolean("easyPlaceVanillaReach", false).apply(GENERIC_KEY);
public static final ConfigBoolean ENTITY_DATA_SYNC = new ConfigBoolean("entityDataSync", true).apply(GENERIC_KEY);
public static final ConfigBoolean ENTITY_DATA_SYNC_BACKUP = new ConfigBoolean("entityDataSyncBackup", true).apply(GENERIC_KEY);
public static final ConfigFloat ENTITY_DATA_SYNC_CACHE_TIMEOUT= new ConfigFloat("entityDataSyncCacheTimeout", 2.0f, 0.25f, 30.0f).apply(GENERIC_KEY);
public static final ConfigBooleanHotkeyed ENTITY_DATA_SYNC = new ConfigBooleanHotkeyed("entityDataSync", false, "").apply(GENERIC_KEY);
public static final ConfigBoolean ENTITY_DATA_SYNC_BACKUP = new ConfigBoolean("entityDataSyncBackup", false).apply(GENERIC_KEY);
public static final ConfigFloat ENTITY_DATA_SYNC_CACHE_TIMEOUT= new ConfigFloat("entityDataSyncCacheTimeout", 0.75f, 0.25f, 30.0f).apply(GENERIC_KEY);
public static final ConfigBoolean ENTITY_DATA_LOAD_NBT = new ConfigBoolean("entityDataSyncLoadNbt", true).apply(GENERIC_KEY);
public static final ConfigBoolean EXECUTE_REQUIRE_TOOL = new ConfigBoolean("executeRequireHoldingTool", true).apply(GENERIC_KEY);
public static final ConfigBoolean FIX_CHEST_MIRROR = new ConfigBoolean("fixChestMirror", true).apply(GENERIC_KEY);
public static final ConfigBoolean FIX_RAIL_ROTATION = new ConfigBoolean("fixRailRotation", true).apply(GENERIC_KEY);
public static final ConfigBoolean FIX_STAIRS_MIRROR = new ConfigBoolean("fixStairsMirror", true).apply(GENERIC_KEY);
public static final ConfigBoolean GENERATE_LOWERCASE_NAMES = new ConfigBoolean("generateLowercaseNames", false).apply(GENERIC_KEY);
public static final ConfigBoolean HIGHLIGHT_BLOCK_IN_INV = new ConfigBoolean("highlightBlockInInventory", false).apply(GENERIC_KEY);
public static final ConfigBoolean ITEM_USE_PACKET_CHECK_BYPASS= new ConfigBoolean("itemUsePacketCheckBypass", true).apply(GENERIC_KEY);
Expand Down Expand Up @@ -130,6 +134,7 @@ public static class Generic
EXECUTE_REQUIRE_TOOL,
FIX_CHEST_MIRROR,
FIX_RAIL_ROTATION,
FIX_STAIRS_MIRROR,
GENERATE_LOWERCASE_NAMES,
HIGHLIGHT_BLOCK_IN_INV,
ITEM_USE_PACKET_CHECK_BYPASS,
Expand Down Expand Up @@ -163,6 +168,7 @@ public static class Generic
UNHIDE_SCHEMATIC_PROJECTS,

PASTE_REPLACE_BEHAVIOR,
SCHEMATIC_VCS_DELETE_MODE,
SELECTION_CORNERS_MODE,

COMMAND_FILL_MAX_VOLUME,
Expand All @@ -178,6 +184,10 @@ public static class Generic
TOOL_ITEM,
TOOL_ITEM_COMPONENTS
);

public static final List<IHotkey> HOTKEY_LIST = ImmutableList.of(
ENTITY_DATA_SYNC
);
}

private static final String VISUALS_KEY = Reference.ID+".config.visuals";
Expand Down
4 changes: 3 additions & 1 deletion src/main/java/fi/dy/masa/litematica/config/Hotkeys.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public class Hotkeys
public static final ConfigHotkey PICK_BLOCK_FIRST = new ConfigHotkey("pickBlockFirst", "BUTTON_3", KeybindSettings.PRESS_ALLOWEXTRA).apply(HOTKEYS_KEY);
public static final ConfigHotkey PICK_BLOCK_LAST = new ConfigHotkey("pickBlockLast", "", KeybindSettings.MODIFIER_INGAME).apply(HOTKEYS_KEY);
public static final ConfigHotkey PICK_BLOCK_TOGGLE = new ConfigHotkey("pickBlockToggle", "M,BUTTON_3").apply(HOTKEYS_KEY);
public static final ConfigHotkey RENDER_INFO_OVERLAY = new ConfigHotkey("renderInfoOverlay", "I", KeybindSettings.PRESS_ALLOWEXTRA_EMPTY).apply(HOTKEYS_KEY);
public static final ConfigHotkey RENDER_INFO_OVERLAY = new ConfigHotkey("renderInfoOverlay", "I", KeybindSettings.PRESS_ALLOWEXTRA).apply(HOTKEYS_KEY);
public static final ConfigHotkey RENDER_OVERLAY_THROUGH_BLOCKS = new ConfigHotkey("renderOverlayThroughBlocks", "RIGHT_CONTROL", KeybindSettings.PRESS_ALLOWEXTRA).apply(HOTKEYS_KEY);
public static final ConfigHotkey RERENDER_SCHEMATIC = new ConfigHotkey("rerenderSchematic", "F3,M").apply(HOTKEYS_KEY);
public static final ConfigHotkey SAVE_AREA_AS_IN_MEMORY_SCHEMATIC = new ConfigHotkey("saveAreaAsInMemorySchematic", "").apply(HOTKEYS_KEY);
Expand All @@ -53,6 +53,7 @@ public class Hotkeys
public static final ConfigHotkey SCHEMATIC_EDIT_REPLACE_DIRECTION = new ConfigHotkey("schematicEditReplaceDirection", "", KeybindSettings.MODIFIER_INGAME).apply(HOTKEYS_KEY);
public static final ConfigHotkey SCHEMATIC_PLACEMENT_ROTATION = new ConfigHotkey("schematicPlacementRotation", "", KeybindSettings.MODIFIER_INGAME).apply(HOTKEYS_KEY);
public static final ConfigHotkey SCHEMATIC_PLACEMENT_MIRROR = new ConfigHotkey("schematicPlacementMirror", "", KeybindSettings.MODIFIER_INGAME).apply(HOTKEYS_KEY);
public static final ConfigHotkey SCHEMATIC_VCS_DELETE_BY_PLACEMENT = new ConfigHotkey("schematicVCSDeleteBlockByPlacement","").apply(HOTKEYS_KEY);
public static final ConfigHotkey SCHEMATIC_VERSION_CYCLE_MODIFIER = new ConfigHotkey("schematicVersionCycleModifier", "", KeybindSettings.MODIFIER_INGAME).apply(HOTKEYS_KEY);
public static final ConfigHotkey SCHEMATIC_VERSION_CYCLE_NEXT = new ConfigHotkey("schematicVersionCycleNext", "").apply(HOTKEYS_KEY);
public static final ConfigHotkey SCHEMATIC_VERSION_CYCLE_PREVIOUS = new ConfigHotkey("schematicVersionCyclePrevious", "").apply(HOTKEYS_KEY);
Expand Down Expand Up @@ -130,6 +131,7 @@ public class Hotkeys
SCHEMATIC_EDIT_REPLACE_DIRECTION,
SCHEMATIC_PLACEMENT_ROTATION,
SCHEMATIC_PLACEMENT_MIRROR,
SCHEMATIC_VCS_DELETE_BY_PLACEMENT,
SCHEMATIC_VERSION_CYCLE_MODIFIER,
SCHEMATIC_VERSION_CYCLE_NEXT,
SCHEMATIC_VERSION_CYCLE_PREVIOUS,
Expand Down
Loading

0 comments on commit 347be87

Please sign in to comment.