From 733028b943b13911945c3fc7cb1b888e399863f5 Mon Sep 17 00:00:00 2001 From: Dustin Norberg Date: Tue, 22 Sep 2026 16:04:36 -0400 Subject: [PATCH] Restore snapshot chunk loading on book stands --- docs/PORTING.md | 9 +++++++-- gradle.properties | 2 +- .../rivencraft/client/screen/DescriptiveBookScreen.java | 3 +-- .../rivencraft/client/screen/LinkingBookScreen.java | 3 +-- 4 files changed, 10 insertions(+), 7 deletions(-) diff --git a/docs/PORTING.md b/docs/PORTING.md index ad7f416..4cc7b96 100644 --- a/docs/PORTING.md +++ b/docs/PORTING.md @@ -254,8 +254,13 @@ Caves remain enclosed. Skylands use Minecraft's uniform floating-island noise and Overworld-like surfaces without the End's central dragon island. Version 0.2.16.14 replaces the Explore text control with a compact eye symbol. -Books opened from a Book Stand display the control disabled and do not request -an explorable remote preview, preventing exploration while the book is mounted. +Books opened from a Book Stand display the control disabled, preventing +exploration while the book is mounted. + +Version 0.2.16.15 restores Immersive Portals chunk loading for snapshots opened +from Book Stands. Snapshot chunk loading is independent from whether the Explore +control is enabled, so mounted books retain live terrain without allowing the +player to enter Explore mode. Version 0.2.14.0 restores the legacy Linking and Descriptive Book artwork for inventory items and gives each book its matching open-book texture when placed diff --git a/gradle.properties b/gradle.properties index acfdbd9..4024be6 100644 --- a/gradle.properties +++ b/gradle.properties @@ -35,7 +35,7 @@ mod_name=Rivencraft # The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default. mod_license=LGPL-3.0-or-later # The mod version. Rivencraft uses the x.y.z.b policy documented in README.md. -mod_version=0.2.16.14 +mod_version=0.2.16.15 immersive_portals_version=6.0.7 # The group ID for the mod. It is only important when publishing as an artifact to a Maven repository. # This should match the base package used for the mod sources. diff --git a/src/main/java/net/dnorberg/rivencraft/client/screen/DescriptiveBookScreen.java b/src/main/java/net/dnorberg/rivencraft/client/screen/DescriptiveBookScreen.java index eb8348d..e66223d 100644 --- a/src/main/java/net/dnorberg/rivencraft/client/screen/DescriptiveBookScreen.java +++ b/src/main/java/net/dnorberg/rivencraft/client/screen/DescriptiveBookScreen.java @@ -93,13 +93,12 @@ public final class DescriptiveBookScreen extends Screen implements ExplorableBoo exploreButton.active = bookStandPos == null; } if (requestPreview) { - boolean allowExploration = preview.supportsExploration() && bookStandPos == null; PacketDistributor.sendToServer(new RequestLinkPreviewPayload( true, bookStandPos != null, bookStandPos == null && hand == InteractionHand.OFF_HAND, bookStandPos == null ? BlockPos.ZERO : bookStandPos, - allowExploration + preview.supportsExploration() )); } } diff --git a/src/main/java/net/dnorberg/rivencraft/client/screen/LinkingBookScreen.java b/src/main/java/net/dnorberg/rivencraft/client/screen/LinkingBookScreen.java index 8b66dce..bf13a77 100644 --- a/src/main/java/net/dnorberg/rivencraft/client/screen/LinkingBookScreen.java +++ b/src/main/java/net/dnorberg/rivencraft/client/screen/LinkingBookScreen.java @@ -95,13 +95,12 @@ public final class LinkingBookScreen extends Screen implements ExplorableBookScr exploreButton.active = bookStandPos == null; } if (requestPreview) { - boolean allowExploration = preview.supportsExploration() && bookStandPos == null; PacketDistributor.sendToServer(new RequestLinkPreviewPayload( false, bookStandPos != null, bookStandPos == null && hand == InteractionHand.OFF_HAND, bookStandPos == null ? BlockPos.ZERO : bookStandPos, - allowExploration + preview.supportsExploration() )); } }