diff --git a/deob-ast/src/main/java/dev/openrs2/deob/ast/transform/GlTransformer.kt b/deob-ast/src/main/java/dev/openrs2/deob/ast/transform/GlTransformer.kt index 94145f4516..739975b87e 100644 --- a/deob-ast/src/main/java/dev/openrs2/deob/ast/transform/GlTransformer.kt +++ b/deob-ast/src/main/java/dev/openrs2/deob/ast/transform/GlTransformer.kt @@ -177,7 +177,7 @@ class GlTransformer(private val registry: GlRegistry = GlRegistry.parse()) : Tra val glInterface = glUnit.primaryType.get() // add missing fields - val fields = enums.filter { !glInterface.getFieldByName(it.name).isPresent } + val fields = enums.filter { glInterface.getFieldByName(it.name).isEmpty } .map { it.toDeclaration() } glInterface.members.addAll(fields)