mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-25 14:05:39 -04:00
Fixes filtering for optional keys
https://github.com/GTNewHorizons/GT-New-Horizons-Modpack/issues/10148
This commit is contained in:
parent
45cc2ea5ae
commit
823a79d6cb
@ -150,6 +150,7 @@ trait NetworkControl[AETile >: Null <: TileEntity with IGridProxyable with IActi
|
||||
filter.forall {
|
||||
case (key: String, value: AnyRef) =>
|
||||
val stack_value = stack.get(key)
|
||||
if (stack_value == null) return false
|
||||
value match {
|
||||
case number: Number => stack_value match {
|
||||
case stack_number: Number => number.intValue == stack_number.intValue
|
||||
|
Loading…
x
Reference in New Issue
Block a user