Public Access
This commit is contained in:
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()
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user