mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-25 14:05:39 -04:00
Merge pull request #59 from GTNewHorizons/feature/filter-fix
Fixes filtering for optional keys
This commit is contained in:
commit
ab430d1d92
@ -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