Skip to content

Commit bd38b4e

Browse files
committed
Fix platform issue by renaming media property
1 parent a94e5d2 commit bd38b4e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ import at.petrak.hexcasting.api.utils.extractMedia
1818
import at.petrak.hexcasting.api.utils.getInt
1919
import at.petrak.hexcasting.api.utils.getList
2020
import at.petrak.hexcasting.xplat.IXplatAbstractions
21-
import gay.`object`.hexdebug.HexDebug
2221
import gay.`object`.hexdebug.blocks.base.BaseContainer
2322
import gay.`object`.hexdebug.blocks.base.ContainerDataDelegate
2423
import gay.`object`.hexdebug.blocks.base.ContainerDataLongDelegate
@@ -68,7 +67,7 @@ class SplicingTableBlockEntity(pos: BlockPos, state: BlockState) :
6867

6968
private val containerData = SimpleContainerData(SplicingTableDataSlot.size)
7069

71-
var media by ContainerDataLongDelegate(
70+
private var mediaDelegate by ContainerDataLongDelegate(
7271
containerData,
7372
index0 = SplicingTableDataSlot.MEDIA_0.index,
7473
index1 = SplicingTableDataSlot.MEDIA_1.index,
@@ -446,12 +445,12 @@ class SplicingTableBlockEntity(pos: BlockPos, state: BlockState) :
446445

447446
// ADMediaHolder
448447

449-
override fun getMedia() = media
448+
override fun getMedia() = mediaDelegate
450449

451450
override fun getMaxMedia() = SplicingTableBlockEntity.maxMedia
452451

453452
override fun setMedia(media: Long) {
454-
HexDebug.LOGGER.warn("Something attempted to call setMedia($media) on a splicing table.")
453+
mediaDelegate = media
455454
}
456455

457456
override fun canRecharge() = false

0 commit comments

Comments
 (0)