Restore snapshot chunk loading on book stands
Build / build (push) Canceled after 0s

This commit is contained in:
dnorberg committed 2026-09-22 16:04:36 -04:00
1 parent 4ba8516d54
commit 733028b943
4 files changed
+10 -7

No files matched your search

@@ -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()
));
}
}
@@ -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()
));
}
}