Skip to content

Commit 057080e

Browse files
committed
Fix Lunar Shrine not working right.
1 parent 96c71f6 commit 057080e

File tree

1 file changed

+3
-3
lines changed
  • common/src/main/java/generations/gg/generations/core/generationscore/common/world/level/block/shrines

1 file changed

+3
-3
lines changed

common/src/main/java/generations/gg/generations/core/generationscore/common/world/level/block/shrines/LunarShrineBlock.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import generations.gg.generations.core.generationscore.common.world.level.block.
1212
import generations.gg.generations.core.generationscore.common.world.level.block.entities.GenerationsBlockEntities
1313
import generations.gg.generations.core.generationscore.common.world.level.block.entities.shrines.InteractShrineBlockEntity
1414
import generations.gg.generations.core.generationscore.common.world.level.block.entities.shrines.LunarShrineBlockEntity
15+
import generations.gg.generations.core.generationscore.common.world.level.block.entities.shrines.ShrineBlockEntity
1516
import net.minecraft.core.BlockPos
1617
import net.minecraft.world.InteractionHand
1718
import net.minecraft.world.ItemInteractionResult
@@ -73,16 +74,15 @@ class LunarShrineBlock(properties: Properties) : ShrineBlock(properties = proper
7374
if (!level.isClientSide()) {
7475
val key = getSpecies(state)
7576

76-
val block =
77-
(if (key === LegendKeys.CRESSELIA) GenerationsShrines.LIGHT_CRYSTAL else GenerationsShrines.DARK_CRYSTAL)
77+
val block = (if (key === LegendKeys.CRESSELIA) GenerationsShrines.LIGHT_CRYSTAL else GenerationsShrines.DARK_CRYSTAL)
7878

7979
val list = RegiShrineBlock.searchForBlock(
8080
level, pos, 15, 5
8181
) { level1: Level, blockPos: BlockPos ->
8282
level1.getBlockState(blockPos).`is`(block)
8383
}
8484

85-
val shrine = level.getBlockEntity(pos).instanceOrNull<InteractShrineBlockEntity>()
85+
val shrine = level.getBlockEntity(pos).instanceOrNull<ShrineBlockEntity>()
8686

8787
if (list.isNotEmpty() && shrine != null) {
8888
if (list.size == 5) {

0 commit comments

Comments
 (0)