We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cda3d58 commit c9ad199Copy full SHA for c9ad199
1 file changed
src/main/kotlin/com/github/quiltservertools/ledger/utility/InspectionManager.kt
@@ -7,7 +7,6 @@ import com.github.quiltservertools.ledger.database.DatabaseManager
7
import kotlinx.coroutines.launch
8
import net.minecraft.block.BedBlock
9
import net.minecraft.block.BlockState
10
-import net.minecraft.block.Blocks
11
import net.minecraft.block.ChestBlock
12
import net.minecraft.block.DoorBlock
13
import net.minecraft.block.enums.BedPart
@@ -60,7 +59,7 @@ fun ServerCommandSource.inspectBlock(pos: BlockPos) {
60
59
var area = BlockBox(pos)
61
62
val state = source.world.getBlockState(pos)
63
- if (state.isOf(Blocks.CHEST)) {
+ if (state.block is ChestBlock) {
64
getOtherChestSide(state, pos)?.let {
65
area = BlockBox.create(pos, it)
66
}
0 commit comments