diff --git a/src/codegen.inc.php b/src/codegen.inc.php index 601eef9..8268421 100644 --- a/src/codegen.inc.php +++ b/src/codegen.inc.php @@ -228,13 +228,13 @@ function obscure_type($type_str, $fld) if($fld->hasToken('obscured')) { if($fld->getType() instanceof \mtgBuiltinType && $fld->getType()->isUint32()) - return "CodeStage.AntiCheat.ObscuredType.ObscuredUInt"; + return "CodeStage.AntiCheat.ObscuredTypes.ObscuredUInt"; else if($fld->getType() instanceof \mtgBuiltinType && $fld->getType()->isUint64()) - return "CodeStage.AntiCheat.ObscuredType.ObscuredULong"; + return "CodeStage.AntiCheat.ObscuredTypes.ObscuredULong"; else if($fld->getType() instanceof \mtgBuiltinType && $fld->getType()->isInt64()) - return "CodeStage.AntiCheat.ObscuredType.ObscuredLong"; + return "CodeStage.AntiCheat.ObscuredTypes.ObscuredLong"; else if($fld->getType() instanceof \mtgBuiltinType && $fld->getType()->isFloat()) - return "CodeStage.AntiCheat.ObscuredType.ObscuredFloat"; + return "CodeStage.AntiCheat.ObscuredTypes.ObscuredFloat"; else throw new Exception("Not supported obscured type: " . $fld->getType()); }