Fixes filtering for optional keys

https://github.com/GTNewHorizons/GT-New-Horizons-Modpack/issues/10148
This commit is contained in:
repo_alt 2022-04-15 18:10:53 +03:00
parent 45cc2ea5ae
commit 823a79d6cb

View File

@ -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