feat: remove projector below block limit
This commit is contained in:
parent
f31969f4e5
commit
d2c1380b82
@ -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()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user