Skip to content

Commit ae4f905

Browse files
committed
Add early exit if media is already full
1 parent d35b03c commit ae4f905

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ class SplicingTableBlockEntity(pos: BlockPos, state: BlockState) :
429429
}
430430

431431
private fun refillMedia() {
432-
if (isCurrentlyCasting) return
432+
if (isCurrentlyCasting || media >= maxMedia) return
433433
val mediaHolder = mediaHolder ?: return
434434

435435
// for static media items (eg. dust), extract media from one item at a time

0 commit comments

Comments
 (0)