Skip to content

Commit 42155e0

Browse files
committed
break!: removed matter-state from block viewer
The blocks that the debug stick affects are obviously always solid.
1 parent 03a3949 commit 42155e0

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/handlers.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,16 +73,11 @@ export function displayBlockInfo(player: Player, block: Block) {
7373

7474
// Basic block info.
7575
info += '\n§4' + block.x + ' §a' + block.y + ' §9' + block.z;
76-
info += '\n§7matter state§8: §e';
77-
if (block.isLiquid) info += 'liquid';
78-
else if (block.isAir) info += 'gas';
79-
else info += 'solid';
80-
//info += '\n§7hard block§8: ' + (block.isSolid ? '§ayes' : '§cno');
81-
info += '\n§7redstone power§8: §c' + (block.getRedstonePower() ?? 0);
76+
info += '\n§o§7redstone power§8: §c' + (block.getRedstonePower() ?? 0);
8277

8378
// The set block states.
8479
for (const [stateName, value] of Object.entries(getStatesOfBlock(block))) {
85-
info += '\n§7' + stateName + '§r§8: ';
80+
info += '\n§7' + stateName + '§r§8: ';
8681
switch (typeof value) {
8782
case 'string': info += '§e'; break;
8883
case 'number': info += '§3'; break;

0 commit comments

Comments
 (0)