Fix matter scanner not properly accepting shift click
This commit is contained in:
parent
4fe2bf3c97
commit
04f54343a1
@ -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
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user