How to add structures screen

This commit is contained in:
ForestOfLight
2025-04-13 01:50:15 -07:00
Unverified
parent 79b22e5fd7
commit 77994b26dd
5 changed files with 22 additions and 5 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ class BlockInfo {
}
static showStructureBlockInfo(player) {
const block = Raycaster.getTargetedStructureBlock(player, { isFirst: true, collideWithWorldBlocks: true });
const block = Raycaster.getTargetedStructureBlock(player, { isFirst: true, collideWithWorldBlocks: true, useLayers: false });
if (!block && this.shownToLastTick.has(player.id)) {
player.onScreenDisplay.setActionBar({ text: 'Structure:\n§7None' });
this.shownToLastTick.delete(player.id);