Fix matter scanner not properly accepting shift click

This commit is contained in:
DBotThePony 2022-01-23 16:09:23 +07:00
parent 4fe2bf3c97
commit 04f54343a1
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -24,7 +24,8 @@ class MenuMatterScanner @JvmOverloads constructor(
val patterns: LevelGaugeWidget
init {
val container = if (tile != null) tile.input_slot else SimpleContainer(1)
val container = tile?.input_slot ?: SimpleContainer(1)
input = object : MatterySlot(container, 0, 64, 38) {
override fun mayPlace(p_40231_: ItemStack): Boolean {
return MatterRegistry.canDecompose(p_40231_)
@ -51,6 +52,6 @@ class MenuMatterScanner @JvmOverloads constructor(
}
override fun getWorkingSlotEnd(): Int {
return 1
return 2
}
}