Skip to content

Commit 7bc365a

Browse files
committed
Fix lodestone reflection using the wrong blockstate property (fix #42)
1 parent 9a0f440 commit 7bc365a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/)
2424

2525
- Fixed an issue where newly placed splicing tables would default to having the first iota selected.
2626
- Fixed several bugs/exploits related to the Splicing Table's media buffer ([#40](https://github.com/object-Object/HexDebug/pull/40), [#41](https://github.com/object-Object/HexDebug/pull/41), [#44](https://github.com/object-Object/HexDebug/pull/44), [#45](https://github.com/object-Object/HexDebug/pull/45)).
27+
- Fixed Lodestone Reflection not working in the Mindsplice Table ([#42](https://github.com/object-Object/HexDebug/pull/42)).
2728

2829
## `0.4.0+1.20.1` - 2025-09-21
2930

Common/src/main/kotlin/gay/object/hexdebug/casting/eval/SplicingTableCastEnv.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ import at.petrak.hexcasting.api.casting.eval.vm.CastingImage
77
import at.petrak.hexcasting.api.pigment.FrozenPigment
88
import at.petrak.hexcasting.api.utils.extractMedia
99
import at.petrak.hexcasting.common.lib.hex.HexEvalSounds
10+
import gay.`object`.hexdebug.blocks.splicing.SplicingTableBlock
1011
import gay.`object`.hexdebug.blocks.splicing.SplicingTableBlockEntity
1112
import gay.`object`.hexdebug.config.HexDebugServerConfig
1213
import net.minecraft.core.BlockPos
1314
import net.minecraft.core.Direction
1415
import net.minecraft.server.level.ServerPlayer
1516
import net.minecraft.sounds.SoundSource
1617
import net.minecraft.world.InteractionHand
17-
import net.minecraft.world.level.block.state.properties.BlockStateProperties
1818
import net.minecraft.world.phys.Vec3
1919
import kotlin.math.min
2020

@@ -26,7 +26,7 @@ class SplicingTableCastEnv(
2626

2727
val blockPos: BlockPos get() = table.blockPos
2828

29-
val facing: Direction get() = table.blockState.getValue(BlockStateProperties.FACING)
29+
val facing: Direction get() = table.blockState.getValue(SplicingTableBlock.FACING)
3030

3131
override fun postExecution(result: CastResult) {
3232
super.postExecution(result)

0 commit comments

Comments
 (0)