feat: remove projector below block limit

This commit is contained in:
xtex 2023-07-28 20:03:48 +08:00
parent f31969f4e5
commit d2c1380b82
Signed by: xtex
GPG Key ID: B918086ED8045B91

View File

@ -121,9 +121,6 @@ class ProjectorBlockEntity(pos: BlockPos, state: BlockState) :
fun collectEffects(): Map<ProjectionEffectType<*>, ProjectionEffect> { fun collectEffects(): Map<ProjectionEffectType<*>, ProjectionEffect> {
val level = level!! as ServerLevel val level = level!! as ServerLevel
if (!level.getBlockState(blockPos.below()).isAir) {
return emptyMap()
}
val effects = mutableMapOf<ProjectionEffectType<*>, ProjectionEffect>() val effects = mutableMapOf<ProjectionEffectType<*>, ProjectionEffect>()
for (x in checkArea.minX()..checkArea.maxX()) { for (x in checkArea.minX()..checkArea.maxX()) {
for (y in checkArea.minY()..checkArea.maxY()) { for (y in checkArea.minY()..checkArea.maxY()) {