From d2c1380b8289aba148a9d7ff0cf473f7cbaf7680 Mon Sep 17 00:00:00 2001 From: xtex Date: Fri, 28 Jul 2023 20:03:48 +0800 Subject: [PATCH] feat: remove projector below block limit --- .../src/main/kotlin/quaedam/projector/ProjectorBlockEntity.kt | 3 --- 1 file changed, 3 deletions(-) diff --git a/common/src/main/kotlin/quaedam/projector/ProjectorBlockEntity.kt b/common/src/main/kotlin/quaedam/projector/ProjectorBlockEntity.kt index 1cc7ac9..91dac6f 100644 --- a/common/src/main/kotlin/quaedam/projector/ProjectorBlockEntity.kt +++ b/common/src/main/kotlin/quaedam/projector/ProjectorBlockEntity.kt @@ -121,9 +121,6 @@ class ProjectorBlockEntity(pos: BlockPos, state: BlockState) : fun collectEffects(): Map, ProjectionEffect> { val level = level!! as ServerLevel - if (!level.getBlockState(blockPos.below()).isAir) { - return emptyMap() - } val effects = mutableMapOf, ProjectionEffect>() for (x in checkArea.minX()..checkArea.maxX()) { for (y in checkArea.minY()..checkArea.maxY()) {