File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff 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§o§ 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 ;
You can’t perform that action at this time.
0 commit comments