Skip to content

Commit c9ad199

Browse files
committed
Fix trapped double chest inspect
1 parent cda3d58 commit c9ad199

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/main/kotlin/com/github/quiltservertools/ledger/utility/InspectionManager.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import com.github.quiltservertools.ledger.database.DatabaseManager
77
import kotlinx.coroutines.launch
88
import net.minecraft.block.BedBlock
99
import net.minecraft.block.BlockState
10-
import net.minecraft.block.Blocks
1110
import net.minecraft.block.ChestBlock
1211
import net.minecraft.block.DoorBlock
1312
import net.minecraft.block.enums.BedPart
@@ -60,7 +59,7 @@ fun ServerCommandSource.inspectBlock(pos: BlockPos) {
6059
var area = BlockBox(pos)
6160

6261
val state = source.world.getBlockState(pos)
63-
if (state.isOf(Blocks.CHEST)) {
62+
if (state.block is ChestBlock) {
6463
getOtherChestSide(state, pos)?.let {
6564
area = BlockBox.create(pos, it)
6665
}

0 commit comments

Comments
 (0)