Skip to content

Commit 5c05d00

Browse files
committed
Fix SplicingTableBlockEntity selection defaulting to 0 instead of -1
1 parent b59cd8b commit 5c05d00

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and [Pydantic's HISTORY.md](https://github.com/pydantic/pydantic/blob/main/HISTORY.md), and this project *mostly* adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [UNRELEASED]
8+
9+
### Fixed
10+
11+
- Fixed an issue where newly placed splicing tables would default to having the first iota selected.
12+
713
## `0.4.0+1.20.1` - 2025-09-21
814

915
### Added

Common/src/main/kotlin/gay/object/hexdebug/blocks/splicing/SplicingTableBlockEntity.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,10 @@ class SplicingTableBlockEntity(pos: BlockPos, state: BlockState) :
100100

101101
val enlightened get() = (blockState.block as? SplicingTableBlock)?.enlightened ?: false
102102

103+
init {
104+
selection = null
105+
}
106+
103107
fun getList(level: ServerLevel) =
104108
listHolder?.let { it.readIota(level) as? ListIota }?.list
105109

0 commit comments

Comments
 (0)